projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tar: Support running on multiple backends.
[matthijs/upstream/backupninja.git]
/
handlers
/
rsync.in
diff --git
a/handlers/rsync.in
b/handlers/rsync.in
index 829f148c3bcbda59a2d2ea69e2cebfeec878056f..8f638d7f41f1bc09e3311ad7e5a7eea25ee337ed 100644
(file)
--- a/
handlers/rsync.in
+++ b/
handlers/rsync.in
@@
-1,3
+1,5
@@
+# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
+# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
#
# backupninja handler for incremental backups using rsync and hardlinks
# feedback: rhatto at riseup.net
#
# backupninja handler for incremental backups using rsync and hardlinks
# feedback: rhatto at riseup.net
@@
-306,7
+308,7
@@
function rotate_short {
local keep="$2"
local metadata="`dirname $folder`/metadata"
local keep="$2"
local metadata="`dirname $folder`/metadata"
- if [[ "$keep"
<
4 ]]; then
+ if [[ "$keep"
-lt
4 ]]; then
error "Rotate: minimum of 4 rotations"
exit 1
fi
error "Rotate: minimum of 4 rotations"
exit 1
fi
@@
-341,7
+343,7
@@
function rotate_short_remote {
local metadata="`dirname $folder`/metadata"
local keep="$2"
local metadata="`dirname $folder`/metadata"
local keep="$2"
- if [[ "$2"
<
4 ]]; then
+ if [[ "$2"
-lt
4 ]]; then
error "Rotate: minimum of 4 rotations"
exit 1
fi
error "Rotate: minimum of 4 rotations"
exit 1
fi