source: TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_obelix @ 4093

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

sauvegarde des scripts permettant la synchronisation des donnees inter centres

File size: 1.9 KB
Line 
1#!/bin/bash
2
3echo "Remarque : pour l'instant cette script est uniquement utilise par login jghattas"
4#echo "Quel est votre login sur obelix ? "
5#echo -n "Votre reponse : "
6#read loginOBELIX
7loginOBELIX=jghattas
8
9cd /ccc/work/cont003/igcmg/igcmg
10
11#echo "Mise a jour des droits sur les repertoires de donnees (TGCC) "
12#ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM
13#is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`
14#if [ "x${is_problem}" != "x0" ]
15#then
16#  echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"
17#  echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"
18#  echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]"
19#  read reponse
20#  case ${reponse} in
21#  non|NON|N|n)
22#  exit
23#  ;;
24#esac
25#fi
26
27echo " Resultat du rsync en dry-run : "
28echo ""
29#rsync -n --omit-dir-times -vrltgoD --chmod=u-w --chmod=o-w --chmod=g-w --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" IGCM ${loginOBELIX}@idefix1.extra.cea.fr:/home/orchideeshare/igcmg/
30rsync -n --omit-dir-times -vrltgoD --chmod=u-w --chmod=o-w --chmod=g-w --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*'  IGCM ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/
31
32echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
33echo -n " Votre reponse : "
34read reponse
35
36case ${reponse} in
37
38oui|OUI|o)
39#rsync --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" IGCM ${loginOBELIX}@idefix1.extra.cea.fr:/home/orchideeshare/igcmg/
40rsync --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*' IGCM ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/
41;;
42non|NON|n)
43echo "RIEN A FAIRE !"
44;;
45*)
46echo "Reponse non reconnue"
47;;
48esac
Note: See TracBrowser for help on using the repository browser.