mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
allow for exclude only configurations to rdiff-backup handler: Closes Trac#21
This commit is contained in:
parent
ca62d94c56
commit
268494b0c8
@ -54,6 +54,7 @@ version 0.9.5 -- unreleased
|
|||||||
. Add configuration option to allow you to disable the version check
|
. Add configuration option to allow you to disable the version check
|
||||||
as in some instances this may be an ok scenario (Closes: #424632)
|
as in some instances this may be an ok scenario (Closes: #424632)
|
||||||
. Added local destination support to helper (Closes: Trac#4)
|
. Added local destination support to helper (Closes: Trac#4)
|
||||||
|
. Allow exclude-only configurations (Closes: Trac#21)
|
||||||
rub/rsync
|
rub/rsync
|
||||||
. Fixed typo in rub handler that caused it to not work
|
. Fixed typo in rub handler that caused it to not work
|
||||||
. Changed to use lib/vserver code
|
. Changed to use lib/vserver code
|
||||||
|
@ -137,7 +137,6 @@ if [ $ignore_version != "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# source specific checks
|
# source specific checks
|
||||||
[ "$include" != "" -o "$vsinclude" != "" ] || fatal "No source includes specified"
|
|
||||||
case $sourcetype in
|
case $sourcetype in
|
||||||
remote ) execstr_sourcepart="$sourceuser@$sourcehost::/" ;;
|
remote ) execstr_sourcepart="$sourceuser@$sourcehost::/" ;;
|
||||||
local ) execstr_sourcepart="/" ;;
|
local ) execstr_sourcepart="/" ;;
|
||||||
@ -233,7 +232,7 @@ fi
|
|||||||
set +o noglob
|
set +o noglob
|
||||||
|
|
||||||
# exclude everything else
|
# exclude everything else
|
||||||
execstr="${execstr}--exclude '/*' "
|
[ "$include" != "" -o "$vsinclude" != "" ] && execstr="${execstr}--exclude '/*' "
|
||||||
|
|
||||||
# include client-part and server-part
|
# include client-part and server-part
|
||||||
execstr="${execstr}$execstr_sourcepart $execstr_destpart"
|
execstr="${execstr}$execstr_sourcepart $execstr_destpart"
|
||||||
|
Loading…
Reference in New Issue
Block a user