source: TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ciclad @ 4099

Last change on this file since 4099 was 4095, checked in by acosce, 6 years ago

la mise a jour des droits sur le repertoire IGCM du TGCC est mise a la fin du script

File size: 1.1 KB
Line 
1#!/bin/bash
2
3cd /ccc/work/cont003/igcmg/igcmg
4
5echo " Resultat du rsync en dry-run : "
6echo ""
7rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish"  --exclude='IGCM/CMIP6/*'  IGCM igcmg@ciclad.ipsl.jussieu.fr:/prodigfs/ipslfs/igcmg
8
9echo "Voulez vous effectuer les actions listees ci dessus oui/non ?"
10echo -n " Votre reponse : "
11read reponse
12
13case ${reponse} in
14
15oui|OUI|o)
16rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish"  --exclude='IGCM/CMIP6/*'  IGCM igcmg@ciclad.ipsl.jussieu.fr:/prodigfs/ipslfs/igcmg
17;;
18non|NON|n)
19echo "RIEN A FAIRE !"
20;;
21*)
22echo "Reponse non reconnue"
23;;
24esac
25
26
27
28echo "Verification des droits des repertoires TGCC"
29ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM
30is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`
31if [ "x${is_problem}" != "x0" ] 
32then
33  echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"
34  echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"
35fi 
Note: See TracBrowser for help on using the repository browser.