source: TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_obelix @ 5934

Last change on this file since 5934 was 5933, checked in by jgipsl, 3 years ago

Keep only one script to obelix. The main script now only synchronizes SRF folder (and without some parts). To synchronize the full IGCM, do it command directly from the terminal or modify temporary the main script.
Anne, Josefine

File size: 2.2 KB
Line 
1#!/bin/bash
2
3echo "Cette script syncronise le repertoire IGCM/SRF avec quelque exception"
4echo "Pour synchroniser tout le repertoire IGCM/SRF ou tout IGCM, merci de faire passer les commands directement dans votre terminal."
5echo ""
6echo "Quel est votre login sur obelix ? "
7echo -n "Votre reponse : "
8read loginOBELIX
9
10cd /ccc/work/cont003/igcmg/igcmg
11
12echo " Resultat du rsync en dry-run : "
13echo ""
14echo "----------------------------------------"
15echo "----------------------------------------"
16echo " Attention la commande ne synchronise pas le répertoire ISIMIP2B dans son ensemble, pour l'instant ne sont pris que les ipsl 1degré historical et scénarios futurs"
17echo "----------------------------------------"
18echo "----------------------------------------"
19rsync -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='METEO/ISIMIP2B/gfdl_*' --exclude='METEO/ISIMIP2B/hadgem_*' --exclude='METEO/ISIMIP2B/miroc_*' --exclude='METEO/ISIMIP2B/ipsl_piControl*' --exclude='METEO/ISIMIP2B/ipsl_*_halfdeg' --exclude='METEO/ISIMIP2B/ipsl_*_twodeg' IGCM/SRF ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/IGCM/
20
21
22echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
23echo -n " Votre reponse : "
24read reponse
25
26case ${reponse} in
27
28oui|OUI|o)
29#rsync --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" IGCM ${loginOBELIX}@idefix1.extra.cea.fr:/home/orchideeshare/igcmg/
30#rsync --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/
31rsync  --omit-dir-times -vrltgoD --chmod=u-w --chmod=o-w --chmod=g-w --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='METEO/ISIMIP2B/gfdl_*' --exclude='METEO/ISIMIP2B/hadgem_*' --exclude='METEO/ISIMIP2B/miroc_*' --exclude='METEO/ISIMIP2B/ipsl_piControl*' --exclude='METEO/ISIMIP2B/ipsl_*_halfdeg' --exclude='METEO/ISIMIP2B/ipsl_*_twodeg' IGCM/SRF ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/IGCM/
32
33;;
34non|NON|n)
35echo "RIEN A FAIRE !"
36;;
37*)
38echo "Reponse non reconnue"
39;;
40esac
41
Note: See TracBrowser for help on using the repository browser.