-t pour rsync : preserve times
darcs-hash:20040318175625-41617-0bb1c8ef0b60f6d1d04ff7631e56e9a5a5d94b00.gz
This commit is contained in:
parent
98d83d2225
commit
0cfd22e284
1 changed files with 4 additions and 4 deletions
|
@ -38,15 +38,15 @@ scp $nom_archive backupcrans@tanek: || exit 3
|
||||||
week=$(date +%W) # numéro de la semaine
|
week=$(date +%W) # numéro de la semaine
|
||||||
week_mod2=$(( $week % 2 ))
|
week_mod2=$(( $week % 2 ))
|
||||||
|
|
||||||
rsync -azSHe ssh --delete $site_web backupcrans@tanek:~/httpd-$week_mod2 || exit 4
|
rsync -atzSHe ssh --delete $site_web backupcrans@tanek:~/httpd-$week_mod2 || exit 4
|
||||||
rsync -azSHe ssh --delete $mails backupcrans@tanek:/mnt/backup$week_mod2/var/spool || exit 5
|
rsync -atzSHe ssh --delete $mails backupcrans@tanek:/mnt/backup$week_mod2/var/spool || exit 5
|
||||||
rsync -azSHe ssh --delete $news backupcrans@tanek:/mnt/backup$week_mod2/var/spool || exit 6
|
rsync -atzSHe ssh --delete $news backupcrans@tanek:/mnt/backup$week_mod2/var/spool || exit 6
|
||||||
|
|
||||||
# Les homes sont donnés à backupcrans.backup
|
# Les homes sont donnés à backupcrans.backup
|
||||||
# "Permission denied" errors occur because backupcrans is not root on tanek. Ignoring
|
# "Permission denied" errors occur because backupcrans is not root on tanek. Ignoring
|
||||||
temp=$(mktemp)
|
temp=$(mktemp)
|
||||||
temp_mail=$(mktemp)
|
temp_mail=$(mktemp)
|
||||||
rsync -azSHe ssh --delete $homes backupcrans@tanek:/mnt/backup$week_mod2 &>$temp
|
rsync -atzSHe ssh --delete $homes backupcrans@tanek:/mnt/backup$week_mod2 &>$temp
|
||||||
grep -vie "permission denied" $temp | grep -vie "skipping non-regular file" | grep -vie "partial transfer" > $temp_mail
|
grep -vie "permission denied" $temp | grep -vie "skipping non-regular file" | grep -vie "partial transfer" > $temp_mail
|
||||||
if [ -s temp_mail ]
|
if [ -s temp_mail ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue