projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r216@um: micah | 2005-12-27 09:50:17 -0500
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
dup
diff --git
a/handlers/dup
b/handlers/dup
index 176ac3eae8e5c3066371d07fd4a2086d42b5e9e2..79be2fc61fd5f13c078c746fbdd3b63ef43fb4cb 100644
(file)
--- a/
handlers/dup
+++ b/
handlers/dup
@@
-19,6
+19,7
@@
getconf vsinclude
getconf exclude
setsection dest
getconf exclude
setsection dest
+getconf incremental yes
getconf keep 60
getconf sshoptions
getconf bandwidthlimit 0
getconf keep 60
getconf sshoptions
getconf bandwidthlimit 0
@@
-92,6
+93,10
@@
if [ "$keep" != "yes" ]; then
execstr="${execstr}--remove-older-than $keep "
fi
execstr="${execstr}--remove-older-than $keep "
fi
+if [ "$incremental" == "no" ]; then
+ execstr="${execstr}--full "
+fi
+
execstr_serverpart="scp://$destuser@$desthost/$destdir"
execstr_clientpart="/"
execstr_serverpart="scp://$destuser@$desthost/$destdir"
execstr_clientpart="/"
@@
-100,13
+105,13
@@
execstr_clientpart="/"
# excludes
for i in $exclude; do
str="${i//__star__/*}"
# excludes
for i in $exclude; do
str="${i//__star__/*}"
- execstr="${execstr}--exclude
$str
"
+ execstr="${execstr}--exclude
'$str'
"
done
# includes
for i in $include; do
str="${i//__star__/*}"
done
# includes
for i in $include; do
str="${i//__star__/*}"
- execstr="${execstr}--include
$str
"
+ execstr="${execstr}--include
'$str'
"
done
# vsincludes
done
# vsincludes