source: TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_occigen @ 4292

Last change on this file since 4292 was 4093, checked in by acosce, 6 years ago

sauvegarde des scripts permettant la synchronisation des donnees inter centres

File size: 1.3 KB
Line 
1CINES_LOGIN_DEFAULT=foujols
2CINES_LOGIN=${1:-${CINES_LOGIN_DEFAULT}}
3echo CINES_LOGIN : ${CINES_LOGIN}
4
5cd /ccc/work/cont003/igcmg/igcmg
6echo "Verification des droits des repertoires TGCC"
7ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM
8is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`
9if [ "x${is_problem}" != "x0" ]
10then
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  ;;
19esac
20fi
21
22cd /ccc/work/cont003/igcmg/igcmg
23echo " Resultat du rsync en dry-run : "
24echo ""
25echo rsync -n -va --progress --delete  IGCM ${CINES_LOGIN}@occigen.cines.fr:/store/CT1/ips2078/SHARED
26rsync -n -vrltgoD --progress --delete  IGCM ${CINES_LOGIN}@occigen.cines.fr:/store/CT1/ips2078/SHARED
27
28echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
29echo -n " Votre reponse : "
30read reponse
31
32case ${reponse} in
33
34oui|OUI|o)
35rsync -vrltgoD --progress --chmod=u-w --chmod=g-w --chmod=o-w --delete IGCM ${CINES_LOGIN}@occigen.cines.fr:/store/CT1/ips2078/SHARED
36;;
37non|NON|n)
38echo "RIEN A FAIRE !"
39;;
40*)
41echo "Reponse non reconnue"
42;;
43esac
44
Note: See TracBrowser for help on using the repository browser.