aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-10 11:26:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-10 11:26:28 -0200
commit71925a319b5648ca6b18d6eec43d28e80b2b278e (patch)
tree204b9793b982473899f97af51d643894285623c1
parent8c87ef80954658d5224e33c5fc24481f22222640 (diff)
downloadpuppet-backup-71925a319b5648ca6b18d6eec43d28e80b2b278e.tar.gz
puppet-backup-71925a319b5648ca6b18d6eec43d28e80b2b278e.tar.bz2
Fixing remote backup handling at sync-backups
-rw-r--r--files/sync-backups2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/sync-backups b/files/sync-backups
index 490e4c9..36c91bc 100644
--- a/files/sync-backups
+++ b/files/sync-backups
@@ -26,7 +26,7 @@ else
# Sync remote backups.
for node in `ls /var/backups/remote/`; do
- mkdir -p /$MEDIA/$node/
+ mkdir -p /$MEDIA/$NODE/remote/$node/
$RSYNC /var/backups/remote/$node/ /$MEDIA/$HOSTNAME/remote/$node/
done