From 70a3f9e44d8ec61d6896bd50397d76830142fc90 Mon Sep 17 00:00:00 2001 From: sayan Date: Sun, 19 Oct 2003 15:38:25 +0200 Subject: [PATCH] Ajout de la synchro des mails, bientot la synchro des logs de squid -- Sayan darcs-hash:20031019133825-d1356-382557c174a159837c483f3d1fe84d14c91d5c81.gz --- backup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backup.sh b/backup.sh index 082506e0..fb7739e4 100755 --- a/backup.sh +++ b/backup.sh @@ -12,6 +12,7 @@ nom_selections=$temp_dir"/selections" ## Que sauvegarder ? confs="etc usr/cvs-rep CRANS usr/scripts boot/config*" # via tar bzip2 site_web="home/httpd/CVS-Repository" # via rsync +mails="var/spool/mail" cd / @@ -31,6 +32,14 @@ week=$(date +%W) # num week_mod2=$(( $week % 2 )) rsync -azSHCe ssh --delete $site_web backupcrans@tanek:~/httpd-$week_mod2 || exit 4 +# rsync over ssh pour les mails +# archive, compress, sparse, hard links, CVS exclude, remote shell +# suppr les fichiers non existant sur zamok +# synchro journalière, switch par semaine +week=$(date +%W) # numéro de la semaine +week_mod2=$(( $week % 2 )) +rsync -azSHCe ssh --delete $mails backupcrans@tanek:/mnt/backup$week_mod2/var/spool || exit 4 + # clean rm -rf $temp_dir