source: TOOLS/SYNCHRO_SCRIPTS/synchro_ada_to_igcmg_test_ccfr @ 4292

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

sauvegarde des scripts permettant la synchronisation des donnees inter centres

File size: 1.2 KB
Line 
1#!/bin/bash
2module load ccfr
3echo "Quel est votre login sur ada/ergon "
4echo -n "Votre reponse : "
5read loginIDRIS
6
7cd /ccc/work/cont003/igcmg/igcmg
8
9
10
11echo -n " Resultat du rsync en dry-run : "
12rsync -n --human-readable --omit-dir-times -vrltgoD --progress --delete -e "/usr/bin/gsissh -o PreferredAuthentications=gssapi-with-mic" ${loginIDRIS}@ada.idris.fr:/workgpfs/rech/psl/rpsl035/IGCM/ IGCM
13
14echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
15echo -n " Votre reponse : "
16read reponse
17
18case ${reponse} in
19
20oui|OUI|o)
21rsync --omit-dir-times  -vrltgoD --progress --chmod=o+w --chmod=g+w  --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" ${loginIDRIS}@ada.idris.fr:/workgpfs/rech/psl/rpsl035/IGCM/ IGCM
22;;
23non|NON|n)
24echo "RIEN A FAIRE !"
25;;
26*)
27echo "Reponse non reconnue"
28;;
29esac
30
31echo "Verification des droits sur les repertoires TGCC"
32ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM
33is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`
34if [ "x${is_problem}" != "x0" ] 
35then
36  echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"
37  echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"
38fi 
Note: See TracBrowser for help on using the repository browser.