Last change
on this file since 5040 was
4093,
checked in by acosce, 6 years ago
|
sauvegarde des scripts permettant la synchronisation des donnees inter centres
|
File size:
1.3 KB
|
Rev | Line | |
---|
[4093] | 1 | CINES_LOGIN_DEFAULT=foujols |
---|
| 2 | CINES_LOGIN=${1:-${CINES_LOGIN_DEFAULT}} |
---|
| 3 | echo CINES_LOGIN : ${CINES_LOGIN} |
---|
| 4 | |
---|
| 5 | cd /ccc/work/cont003/igcmg/igcmg |
---|
| 6 | echo "Verification des droits des repertoires TGCC" |
---|
| 7 | ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM |
---|
| 8 | is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` |
---|
| 9 | if [ "x${is_problem}" != "x0" ] |
---|
| 10 | then |
---|
| 11 | echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" |
---|
| 12 | echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" |
---|
| 13 | echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]" |
---|
| 14 | read reponse |
---|
| 15 | case ${reponse} in |
---|
| 16 | non|NON|N|n) |
---|
| 17 | exit |
---|
| 18 | ;; |
---|
| 19 | esac |
---|
| 20 | fi |
---|
| 21 | |
---|
| 22 | cd /ccc/work/cont003/igcmg/igcmg |
---|
| 23 | echo " Resultat du rsync en dry-run : " |
---|
| 24 | echo "" |
---|
| 25 | echo rsync -n -va --progress --delete IGCM ${CINES_LOGIN}@occigen.cines.fr:/store/CT1/ips2078/SHARED |
---|
| 26 | rsync -n -vrltgoD --progress --delete IGCM ${CINES_LOGIN}@occigen.cines.fr:/store/CT1/ips2078/SHARED |
---|
| 27 | |
---|
| 28 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
| 29 | echo -n " Votre reponse : " |
---|
| 30 | read reponse |
---|
| 31 | |
---|
| 32 | case ${reponse} in |
---|
| 33 | |
---|
| 34 | oui|OUI|o) |
---|
| 35 | rsync -vrltgoD --progress --chmod=u-w --chmod=g-w --chmod=o-w --delete IGCM ${CINES_LOGIN}@occigen.cines.fr:/store/CT1/ips2078/SHARED |
---|
| 36 | ;; |
---|
| 37 | non|NON|n) |
---|
| 38 | echo "RIEN A FAIRE !" |
---|
| 39 | ;; |
---|
| 40 | *) |
---|
| 41 | echo "Reponse non reconnue" |
---|
| 42 | ;; |
---|
| 43 | esac |
---|
| 44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.