Last change
on this file since 4105 was
4093,
checked in by acosce, 6 years ago
|
sauvegarde des scripts permettant la synchronisation des donnees inter centres
|
File size:
1.9 KB
|
Rev | Line | |
---|
[4093] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | echo "Remarque : pour l'instant cette script est uniquement utilise par login jghattas" |
---|
| 4 | #echo "Quel est votre login sur obelix ? " |
---|
| 5 | #echo -n "Votre reponse : " |
---|
| 6 | #read loginOBELIX |
---|
| 7 | loginOBELIX=jghattas |
---|
| 8 | |
---|
| 9 | cd /ccc/work/cont003/igcmg/igcmg |
---|
| 10 | |
---|
| 11 | #echo "Mise a jour des droits sur les repertoires de donnees (TGCC) " |
---|
| 12 | #ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM |
---|
| 13 | #is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` |
---|
| 14 | #if [ "x${is_problem}" != "x0" ] |
---|
| 15 | #then |
---|
| 16 | # echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" |
---|
| 17 | # echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" |
---|
| 18 | # echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]" |
---|
| 19 | # read reponse |
---|
| 20 | # case ${reponse} in |
---|
| 21 | # non|NON|N|n) |
---|
| 22 | # exit |
---|
| 23 | # ;; |
---|
| 24 | #esac |
---|
| 25 | #fi |
---|
| 26 | |
---|
| 27 | echo " Resultat du rsync en dry-run : " |
---|
| 28 | echo "" |
---|
| 29 | #rsync -n --omit-dir-times -vrltgoD --chmod=u-w --chmod=o-w --chmod=g-w --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" IGCM ${loginOBELIX}@idefix1.extra.cea.fr:/home/orchideeshare/igcmg/ |
---|
| 30 | rsync -n --omit-dir-times -vrltgoD --chmod=u-w --chmod=o-w --chmod=g-w --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*' IGCM ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/ |
---|
| 31 | |
---|
| 32 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
| 33 | echo -n " Votre reponse : " |
---|
| 34 | read reponse |
---|
| 35 | |
---|
| 36 | case ${reponse} in |
---|
| 37 | |
---|
| 38 | oui|OUI|o) |
---|
| 39 | #rsync --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" IGCM ${loginOBELIX}@idefix1.extra.cea.fr:/home/orchideeshare/igcmg/ |
---|
| 40 | rsync --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*' IGCM ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/ |
---|
| 41 | ;; |
---|
| 42 | non|NON|n) |
---|
| 43 | echo "RIEN A FAIRE !" |
---|
| 44 | ;; |
---|
| 45 | *) |
---|
| 46 | echo "Reponse non reconnue" |
---|
| 47 | ;; |
---|
| 48 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.