aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-03 19:33:19 -0200
committerintrigeri <intrigeri@boum.org>2012-01-04 22:48:45 +0100
commitdcabf4fe4ee96b8c201c48e5e42e6e07f53f1a06 (patch)
tree6e1fdd955f4d4110689a3c42a018b0381b5805bd /handlers
parentdb45b98132b352bc651f5ee0eb7299919eceb31a (diff)
downloadbackupninja-dcabf4fe4ee96b8c201c48e5e42e6e07f53f1a06.tar.gz
backupninja-dcabf4fe4ee96b8c201c48e5e42e6e07f53f1a06.tar.bz2
Fixing escaping and debug message for remote metadata cleanup (#3727)
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index f140642..e46f866 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -365,9 +365,9 @@ function rotate_short_remote {
fi
# Cleanup orphaned metadata
- for file in `ls $metadata`; do
+ for file in \`ls $metadata\`; do
if [ ! -d "`dirname $folder`/\$file" ]; then
- debug "removing orphaned metadata \$file"
+ echo "Debug: removing orphaned metadata \$file"
rm -rf $metadata/\$file
fi
done
@@ -601,9 +601,9 @@ function rotate_long_remote {
done
# Cleanup orphaned metadata
- for file in `ls $backuproot/metadata`; do
+ for file in \`ls $backuproot/metadata\`; do
if [ ! -d "$backuproot/\$file" ]; then
- debug "removing orphaned metadata \$file"
+ echo "Debug: removing orphaned metadata \$file"
rm -rf $backuproot/metadata/\$file
fi
done