From ce0f84a2056957b4b25c2f4439172329c0763b3e Mon Sep 17 00:00:00 2001 From: sayan Date: Sun, 19 Oct 2003 16:11:45 +0200 Subject: [PATCH] coquilles, et une petite modif pour viter que tar ne spamme Fred -- Sayan darcs-hash:20031019141145-d1356-d583904e082402cdf3b4059bd163c007bc8ee02d.gz --- backup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index fb7739e4..c2c090cc 100755 --- a/backup.sh +++ b/backup.sh @@ -3,6 +3,7 @@ ## Sauvegarde des fichiers de conf et du site web CRANS sur Tanek ## Sayan 02/10/2003 ## Ajout de la synchro du site web : Sayan 04/10/2003 +## Ajout de la synchro des mails : Sayan 19/10/2003 ## Nom de fichiers et chemins temp_dir=$(mktemp -d) @@ -19,7 +20,7 @@ cd / # tgz le contenu des répertoires # ajoute dpkg --get-selections dpkg --get-selections > $nom_selections || exit 1 -tar -cjf $nom_archive $confs $nom_selections || exit 2 +tar -cvjf $nom_archive $confs .$nom_selections || exit 2 # scp le fichier sur tanek scp $nom_archive backupcrans@tanek: || exit 3 @@ -38,7 +39,7 @@ rsync -azSHCe ssh --delete $site_web backupcrans@tanek:~/httpd-$week_mod2 || exi # 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 +rsync -azSHCe ssh --delete $mails backupcrans@tanek:/mnt/backup$week_mod2/var/spool || exit 5 # clean