Changeset 5933 for TOOLS


Ignore:
Timestamp:
10/05/21 11:35:30 (2 years ago)
Author:
jgipsl
Message:

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

Location:
TOOLS/SYNCHRO_SCRIPTS
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_obelix

    r5118 r5933  
    11#!/bin/bash 
    22 
    3 echo "Remarque : pour l'instant cette script est uniquement testé pour le login jghattas" 
     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 "" 
    46echo "Quel est votre login sur obelix ? " 
    57echo -n "Votre reponse : " 
     
    810cd /ccc/work/cont003/igcmg/igcmg 
    911 
    10 #echo "Mise a jour des droits sur les repertoires de donnees (TGCC) " 
    11 #ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 
    12 #is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
    13 #if [ "x${is_problem}" != "x0" ]  
    14 #then 
    15 #  echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" 
    16 #  echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" 
    17 #  echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]" 
    18 #  read reponse 
    19 #  case ${reponse} in  
    20 #  non|NON|N|n) 
    21 #  exit  
    22 #  ;;  
    23 #esac 
    24 #fi  
    25  
    2612echo " Resultat du rsync en dry-run : " 
    2713echo "" 
    28 #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/ 
    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" --exclude='IGCM/CMIP6/*'  IGCM ${loginOBELIX}@ssh1.lsce.ipsl.fr:/home/orchideeshare/igcmg/ 
     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 
    3021 
    3122echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" 
     
    3728oui|OUI|o) 
    3829#rsync --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" IGCM ${loginOBELIX}@idefix1.extra.cea.fr:/home/orchideeshare/igcmg/ 
    39 rsync --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/ 
     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 
    4033;; 
    4134non|NON|n) 
     
    4639;; 
    4740esac 
     41 
Note: See TracChangeset for help on using the changeset viewer.