1 | #!/bin/bash |
---|
2 | |
---|
3 | cd /ccc/work/cont003/igcmg/igcmg |
---|
4 | |
---|
5 | echo " Resultat du rsync en dry-run : " |
---|
6 | echo "" |
---|
7 | rsync -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 | |
---|
13 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
14 | echo -n " Votre reponse : " |
---|
15 | read reponse |
---|
16 | |
---|
17 | case ${reponse} in |
---|
18 | |
---|
19 | oui|OUI|o) |
---|
20 | rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" igcmg@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 | ;; |
---|
28 | non|NON|n) |
---|
29 | echo "RIEN A FAIRE !" |
---|
30 | ;; |
---|
31 | *) |
---|
32 | echo "Reponse non reconnue" |
---|
33 | ;; |
---|
34 | esac |
---|
35 | |
---|
36 | echo "Verification des droits des repertoires TGCC" |
---|
37 | ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM/ReferenceDatasets |
---|
38 | is_problem=` ccc_shspace_modck ReferenceDatasets |grep ccc_shspace_chmod |wc -l` |
---|
39 | if [ "x${is_problem}" != "x0" ] |
---|
40 | then |
---|
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" |
---|
43 | fi |
---|