From 8c87ef80954658d5224e33c5fc24481f22222640 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 16 Dec 2010 22:02:05 -0200 Subject: Sync local encrypted backup also inside vservers --- files/sync-backups | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/sync-backups b/files/sync-backups index c23e05d..490e4c9 100644 --- a/files/sync-backups +++ b/files/sync-backups @@ -10,6 +10,11 @@ IMAGES="/var/data/crypt/" RSYNC="nice -n 19 rsync -avH --delete --bwlimit=$BWLIMIT" if [ ! -z "$NODE" ]; then + # Sync local encrypted backup. + mkdir -p /$MEDIA/$NODE/duplicity + $RSYNC /var/vservers/$NODE/var/backups/duplicity/ /$MEDIA/$NODE/duplicity/ + + # Sync remote backups. for node in `ls /var/vservers/$NODE/var/backups/remote/`; do mkdir -p /$MEDIA/$NODE/remote/$node $RSYNC /var/vservers/$NODE/var/backups/remote/$node/ /$MEDIA/$NODE/remote/$node/ -- cgit v1.2.3