diff options
Diffstat (limited to 'files/sync-backups')
-rw-r--r-- | files/sync-backups | 5 |
1 files changed, 5 insertions, 0 deletions
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/ |