source: TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_obelix_SRF_Anne @ 5900

Last change on this file since 5900 was 5118, checked in by acosce, 4 years ago

ajout de script pour la synchro vers Jean Zay : 1- en utilisant le réseau ccfr / 2- en utilisant un rebond vers une machine tierce
ajout d'un script de synchro specifique au login cozic pour la synchro vers obelix pendant le conge mat de Josefine
correction du login de connexion pour la synchro de referenceDataset vers ciclad
-

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2
3echo "Remarque : script cree par Anne pendant le conge de Josefine pour la synchro vers Obelix (juin 2020) "
4#echo "Quel est votre login sur obelix ? "
5#echo -n "Votre reponse : "
6#read loginOBELIX
7loginOBELIX=cozic
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" IGCM/SRF ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/IGCM/
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" IGCM/SRF ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/IGCM/
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.