Last change
on this file since 4198 was
4105,
checked in by acosce, 6 years ago
|
Plusieurs choses :
- correction du path pour le ssh vers ergon et ada pour la mise a jour des commandes acl dans les scripts de syn
chro
- ajout d'une question pour sauvegarder la liste des actions proposees dans le cas ou l'on refuse la synchro
- remove du login rces599 qui faisait planter la commande acl
|
File size:
1.7 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | cd /ccc/work/cont003/igcmg/igcmg |
---|
4 | |
---|
5 | echo " Resultat du rsync en dry-run : " |
---|
6 | echo "" |
---|
7 | rsync -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 | |
---|
9 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
10 | echo -n " Votre reponse : " |
---|
11 | read reponse |
---|
12 | |
---|
13 | case ${reponse} in |
---|
14 | |
---|
15 | oui|OUI|o) |
---|
16 | rsync -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 | ;; |
---|
18 | non|NON|n) |
---|
19 | |
---|
20 | |
---|
21 | echo "Voulez vous sauvegarder la liste des actions dans un fichier oui/non ?" |
---|
22 | echo -n "Votre reponse : " |
---|
23 | read reponse2 |
---|
24 | |
---|
25 | case ${reponse2} in |
---|
26 | |
---|
27 | oui|OUI|o) |
---|
28 | VAR=`date +%Y-%m-%d` |
---|
29 | NAME=`whoami` |
---|
30 | rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*' IGCM igcmg@ciclad.ipsl.jussieu.fr:/prodigfs/ipslfs/igcmg > /ccc/work/cont003/igcmg/igcmg/TMP_SYNC/liste_action_ciclad_${NAME}_${VAR}.txt |
---|
31 | echo "vous trouverez la liste dans /ccc/work/cont003/igcmg/igcmg/TMP_SYNC/liste_action_ciclad_${NAME}_${VAR}.txt" |
---|
32 | ;; |
---|
33 | non|NON|n) |
---|
34 | ;; |
---|
35 | *) |
---|
36 | echo "Reponse non reconnue" |
---|
37 | ;; |
---|
38 | esac |
---|
39 | |
---|
40 | |
---|
41 | echo "FIN SCRIPT SYNCHRO ! nous passons à la mise à jour des droits " |
---|
42 | ;; |
---|
43 | *) |
---|
44 | echo "Reponse non reconnue" |
---|
45 | ;; |
---|
46 | esac |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | echo "Verification des droits des repertoires TGCC" |
---|
51 | ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM |
---|
52 | is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` |
---|
53 | if [ "x${is_problem}" != "x0" ] |
---|
54 | then |
---|
55 | echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" |
---|
56 | echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" |
---|
57 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.