typo in backupninja.1
[matthijs/upstream/backupninja.git] / handlers / maildir
index 49b254217a25a62b2e245d05e01eaa1012cb3424..4b98debfbef9f26acbe82bd14ad1cd3587356b27 100644 (file)
@@ -157,7 +157,7 @@ function do_rotate() {
                fi
                
                # Rotate the current list of backups, if we can.
-               oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1\`
+               oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1\`
                #echo "Debug: oldest \$oldest"
                [ "\$oldest" == "" ] && oldest=0
                for (( i=\$oldest; i > 0; i-- )); do
@@ -201,7 +201,7 @@ function do_rotate() {
        for rottype in daily weekly monthly; do
                max=\$((keep\${rottype}+1))
                dir="$backuproot/\$rottype"
-               oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1\`
+               oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1\`
                [ "\$oldest" == "" ] && oldest=0 
                # if we've rotated the last backup off the stack, remove it.
                for (( i=\$oldest; i >= \$max; i-- )); do
@@ -335,7 +335,7 @@ if [ "$backup" == "yes" ]; then
                        debug $i
                        for user in `ls -1`; do
                                [ "$user" != "" ] || continue
-                               info $user
+                               debug $user
                                do_rotate $user
                                setup_remote_dirs $user $btype
                                do_user $user $btype