Last change
on this file since 5182 was
5118,
checked in by acosce, 4 years ago
|
ajout de script pour la synchro vers Jean Zay : 1- en utilisant le réseau ccfr / 2- en utilisant un rebond vers une machine tierce
ajout d'un script de synchro specifique au login cozic pour la synchro vers obelix pendant le conge mat de Josefine
correction du login de connexion pour la synchro de referenceDataset vers ciclad
-
|
-
Property svn:executable set to
*
|
File size:
1.9 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | echo "Remarque : script cree par Anne pendant le conge de Josefine pour la synchro vers Obelix (juin 2020) " |
---|
4 | #echo "Quel est votre login sur obelix ? " |
---|
5 | #echo -n "Votre reponse : " |
---|
6 | #read loginOBELIX |
---|
7 | loginOBELIX=cozic |
---|
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" IGCM/SRF ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/IGCM/ |
---|
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" IGCM/SRF ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/IGCM/ |
---|
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.