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 | |
---|
3 | echo "Cette script syncronise le repertoire IGCM/SRF avec quelque exception" |
---|
4 | echo "Pour synchroniser tout le repertoire IGCM/SRF ou tout IGCM, merci de faire passer les commands directement dans votre terminal." |
---|
5 | echo "" |
---|
6 | echo "Quel est votre login sur obelix ? " |
---|
7 | echo -n "Votre reponse : " |
---|
8 | read loginOBELIX |
---|
9 | |
---|
10 | cd /ccc/work/cont003/igcmg/igcmg |
---|
11 | |
---|
12 | echo " Resultat du rsync en dry-run : " |
---|
13 | echo "" |
---|
14 | echo "----------------------------------------" |
---|
15 | echo "----------------------------------------" |
---|
16 | echo " 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" |
---|
17 | echo "----------------------------------------" |
---|
18 | echo "----------------------------------------" |
---|
19 | 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" --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 | |
---|
22 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
23 | echo -n " Votre reponse : " |
---|
24 | read reponse |
---|
25 | |
---|
26 | case ${reponse} in |
---|
27 | |
---|
28 | oui|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/ |
---|
31 | rsync --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 | ;; |
---|
34 | non|NON|n) |
---|
35 | echo "RIEN A FAIRE !" |
---|
36 | ;; |
---|
37 | *) |
---|
38 | echo "Reponse non reconnue" |
---|
39 | ;; |
---|
40 | esac |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.