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.2 KB
|
Rev | Line | |
---|
[4093] | 1 | #!/bin/bash |
---|
| 2 | module load ccfr |
---|
| 3 | echo "Quel est votre login sur ada/ergon " |
---|
| 4 | echo -n "Votre reponse : " |
---|
| 5 | read loginIDRIS |
---|
| 6 | |
---|
| 7 | cd /ccc/work/cont003/igcmg/igcmg |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | echo -n " Resultat du rsync en dry-run : " |
---|
| 12 | rsync -n --human-readable --omit-dir-times -vrltgoD --progress --delete -e "/usr/bin/gsissh -o PreferredAuthentications=gssapi-with-mic" ${loginIDRIS}@ada.idris.fr:/workgpfs/rech/psl/rpsl035/IGCM/ IGCM |
---|
| 13 | |
---|
| 14 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
| 15 | echo -n " Votre reponse : " |
---|
| 16 | read reponse |
---|
| 17 | |
---|
| 18 | case ${reponse} in |
---|
| 19 | |
---|
| 20 | oui|OUI|o) |
---|
| 21 | rsync --omit-dir-times -vrltgoD --progress --chmod=o+w --chmod=g+w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" ${loginIDRIS}@ada.idris.fr:/workgpfs/rech/psl/rpsl035/IGCM/ IGCM |
---|
| 22 | ;; |
---|
| 23 | non|NON|n) |
---|
| 24 | echo "RIEN A FAIRE !" |
---|
| 25 | ;; |
---|
| 26 | *) |
---|
| 27 | echo "Reponse non reconnue" |
---|
| 28 | ;; |
---|
| 29 | esac |
---|
| 30 | |
---|
| 31 | echo "Verification des droits sur les repertoires TGCC" |
---|
| 32 | ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM |
---|
| 33 | is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` |
---|
| 34 | if [ "x${is_problem}" != "x0" ] |
---|
| 35 | then |
---|
| 36 | echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" |
---|
| 37 | echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" |
---|
| 38 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.