source: TOOLS/SYNCHRO_SCRIPTS/synchro_refciclad_to_igcmg @ 5118

Last change on this file since 5118 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
-

File size: 2.7 KB
Line 
1#!/bin/bash
2
3cd /ccc/work/cont003/igcmg/igcmg
4
5echo " Resultat du rsync en dry-run : "
6echo ""
7rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets IGCM
8#rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/atm ReferenceDatasets
9#rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" igcmg@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/oce ReferenceDatasets
10#rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" igcmg@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/ice ReferenceDatasets
11#rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" igcmg@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/PCMDI-MP ReferenceDatasets
12
13echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
14echo -n " Votre reponse : "
15read reponse
16
17case ${reponse} in
18
19oui|OUI|o)
20rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets IGCM
21#rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/atm ReferenceDatasets
22#rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/oce ReferenceDatasets
23#rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/ice ReferenceDatasets
24#rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" jservon@ciclad.ipsl.jussieu.fr:/data/jservon/Evaluation/ReferenceDatasets/PCMDI-MP ReferenceDatasets
25
26
27;;
28non|NON|n)
29echo "RIEN A FAIRE !"
30;;
31*)
32echo "Reponse non reconnue"
33;;
34esac
35
36echo "Verification des droits des repertoires TGCC"
37ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM/ReferenceDatasets
38is_problem=` ccc_shspace_modck ReferenceDatasets |grep ccc_shspace_chmod |wc -l`
39if [ "x${is_problem}" != "x0" ] 
40then
41  echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"
42  echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"
43fi 
Note: See TracBrowser for help on using the repository browser.