-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynchro_titania.sh
executable file
·23 lines (20 loc) · 1.14 KB
/
synchro_titania.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/zsh
HOMEDIR="/home/catB/ms264315"
user="ms264315"
repignore="/usr/local/bin"
echo $repignore
rep_sauv_bin="/home/matthieu/Documents/IT/sauv_bin"
# on transfert le user/local/bin dans sauv bin :
cp -p /usr/local/bin/* $rep_sauv_bin
# repignore="/home/matthieu/Documents/IT/ORCUS/sauvegarde"
# log_ssh="ssh -i ${ORCUS_PATH}/id_rsa ${user}@${log_node}"
# Chmod a distance sur un dir du serveur distant :
# ssh -i ${ORCUS_PATH}/id_rsa ms264315@orcusloginamd1 "chmod 600 ${HOMEDIR}/sauv_avz"
# Arboresence a sauver : en ssh
# rsync -e ssh /home/matthieu/Documents/Biblio/*.bib ms264315@orcusloginamd1:$HOMEDIR
# || rsync /home/matthieu/.zshrc ms264315@orcusloginamd1:$HOMEDIR
# rsync -r --progress -va --exclude-from "${repignore}/sauvignore.txt" /home/matthieu/Documents ${user}@pegasi3.intra.cea.fr:/home/catB/${user}
# Rq : use pegasi1, pegasi3 or pegasi5
# ou : ganymede3
rsync -r --progress -va --exclude-from "${repignore}/sauvignore.txt" /home/matthieu/Documents ${user}@pegasi5.intra.cea.fr:/home/catB/${user}
# rsync -r --progress -va --exclude-from "${repignore}/sauvignore.txt" /usr/local/bin ${user}@pegasi1.intra.cea.fr:/home/catB/${user}