source: TOOLS/SYNCHRO_SCRIPTS/synchro_Training_to_jeanzay @ 5118

Last change on this file since 5118 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.8 KB
Line 
1#!/bin/bash
2
3echo "Quel est votre login sur ada "
4echo -n "Votre reponse : "
5read loginIDRIS
6
7cd /ccc/work/cont003/igcmg/igcmg
8
9
10echo " Resultat du rsync en dry-run : "
11echo ""
12
13rsync -n --omit-dir-times -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c aes128-ctr"  TRAINING ${loginIDRIS}@jean-zay.idris.fr:/gpfswork/rech/psl/commun/
14
15
16echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
17echo -n " Votre reponse : "
18read reponse
19
20case ${reponse} in
21
22oui|OUI|o)
23rsync --omit-dir-times -vrltgoD --progress  --delete -e "ssh -ax -o ClearAllForwardings=yes -c aes128-ctr" TRAINING ${loginIDRIS}@jean-zay.idris.fr:/gpfswork/rech/psl/commun/
24echo "FIN SCRIPT SYNCHRO ! nous passons à la mise à jour des droits "
25;;
26non|NON|n)
27
28echo "PAS SCRIPT SYNCHRO ! nous passons à la mise à jour des droits "
29;;
30*)
31echo "Reponse non reconnue"
32;;
33esac
34
35ssh ${loginIDRIS}@jean-zay.idris.fr "setfacl -R -m u::rwx,u:rlmd007:rwx,u:rces009:rwx,u:rgzi017:rwx,u:rpsl003:rwx,u:rces333:rwx,u:rpsl500:rwx,u:rpsl592:rwx,u:rces981:rwx,u:rgzi002:rwx,u:rpsl951:rwx,u:rgzi023:rwx,u:rgzi028:rwx,u:rdzt910:rwx,u:romr009:rwx,u:rgzi026:rwx,u:rpsl655:rwx,g::r-x,o::r-x,m::rwx /gpfswork/rech/psl/commun/TRAINING"
36
37
38
39echo "Verification des droits sur les fichiers cote TGCC"
40ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/TRAINING
41is_problem=` ccc_shspace_modck TRAINING |grep ccc_shspace_chmod |wc -l`
42if [ "x${is_problem}" != "x0" ]
43then
44  echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"
45  echo "vous pouvez utiliser la commande ccc_shspace_modck TRAINING pour savoir qui doit mettre a jour les droits"
46  echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]"
47  read reponse
48  case ${reponse} in
49  non|NON|N|n)
50  exit
51  ;;
52esac
53fi
Note: See TracBrowser for help on using the repository browser.