diff options
-rw-r--r-- | files/handlers/rsync | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/handlers/rsync b/files/handlers/rsync index b3f0782..e098a84 100644 --- a/files/handlers/rsync +++ b/files/handlers/rsync @@ -371,9 +371,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 @@ -607,9 +607,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 |