r3569@krups: intrigeri | 2005-11-17 22:34:04 +0100

dup.helper: now remembers the src-section values (includes, etc.) inside one do_new session
This commit is contained in:
intrigeri 2005-11-29 10:11:25 +00:00
parent b27f7e71b6
commit 608d395aa2

View File

@ -8,7 +8,8 @@ do_dup_host_includes() {
REPLY= REPLY=
while [ -z "$REPLY" ]; do while [ -z "$REPLY" ]; do
formBegin "$dup_title - host system: includes" formBegin "$dup_title - host system: includes"
for i in $dup_default_includes; do [ -z "$dup_includes" ] && dup_includes="$dup_default_includes"
for i in $dup_includes; do
formItem include "$i" formItem include "$i"
done done
formItem include "" formItem include ""
@ -31,7 +32,8 @@ do_dup_vserver() {
REPLY= REPLY=
while [ -z "$REPLY" ]; do while [ -z "$REPLY" ]; do
formBegin "$dup_title - vservers: includes" formBegin "$dup_title - vservers: includes"
for i in $dup_default_includes; do [ -z "$dup_vsincludes" ] && dup_vsincludes="$dup_default_includes"
for i in $dup_vsincludes; do
formItem include "$i" formItem include "$i"
done done
formItem include "" formItem include ""
@ -47,7 +49,8 @@ do_dup_vserver() {
do_dup_excludes() { do_dup_excludes() {
set -o noglob set -o noglob
formBegin "$dup_title: excludes" formBegin "$dup_title: excludes"
for i in $dup_default_excludes; do [ -z "$dup_excludes" ] && dup_excludes="$dup_default_excludes"
for i in $dup_excludes; do
formItem exclude "$i" formItem exclude "$i"
done done
formItem exclude "" formItem exclude ""
@ -402,11 +405,9 @@ dup_wizard() {
_con_done= _con_done=
_gpg_done= _gpg_done=
_adv_done= _adv_done=
declare -a dup_default_includes dup_includes=
declare -a dup_default_excludes dup_excludes=
declare -a dup_includes dup_vsincludes=
declare -a dup_excludes
declare -a dup_vsincludes
dup_incremental=yes dup_incremental=yes
dup_keep=60 dup_keep=60
dup_bandwidth= dup_bandwidth=