projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/Makefile.am: fix CLEANFILES, add substitution for MKTEMP, else ninjahelper crashes
[matthijs/upstream/backupninja.git]
/
handlers
/
rdiff.helper.in
diff --git
a/handlers/rdiff.helper.in
b/handlers/rdiff.helper.in
index 42bcb1b2de04c3809b55164eabdc0fad031b2cf0..1055280b155850bf905a89bc987567fc32ca1a20 100644
(file)
--- a/
handlers/rdiff.helper.in
+++ b/
handlers/rdiff.helper.in
@@
-112,6
+112,7
@@
do_rdiff_dest() {
formItem "dest_directory" "$rdiff_directory"
formItem "dest_host" "$rdiff_host"
formItem "dest_user" "$rdiff_user"
formItem "dest_directory" "$rdiff_directory"
formItem "dest_host" "$rdiff_host"
formItem "dest_user" "$rdiff_user"
+ formItem "dest_type" "$rdiff_type"
formDisplay
[ $? = 0 ] || return
tmp_array=($REPLY)
formDisplay
[ $? = 0 ] || return
tmp_array=($REPLY)
@@
-119,6
+120,7
@@
do_rdiff_dest() {
rdiff_directory=${tmp_array[1]}
rdiff_host=${tmp_array[2]}
rdiff_user=${tmp_array[3]}
rdiff_directory=${tmp_array[1]}
rdiff_host=${tmp_array[2]}
rdiff_user=${tmp_array[3]}
+ rdiff_type=${tmp_array[4]}
done
set +o noglob
done
set +o noglob
@@
-133,6
+135,9
@@
do_rdiff_ssh_con() {
if [ "$_dest_done" = "" ]; then
msgBox "$rdiff_title: error" "You must first configure the destination."
return
if [ "$_dest_done" = "" ]; then
msgBox "$rdiff_title: error" "You must first configure the destination."
return
+ elif [ "$rdiff_type" = "" ]; then
+ msgBox "$rdiff_title: error" "You must first configure the destination backup type."
+ return
elif [ "$rdiff_user" = "" ]; then
msgBox "$rdiff_title: error" "You must first configure the destination user."
return
elif [ "$rdiff_user" = "" ]; then
msgBox "$rdiff_title: error" "You must first configure the destination user."
return
@@
-386,6
+391,7
@@
rdiff_wizard() {
_adv_done=
rdiff_keep=60D
rdiff_directory=/backup/`hostname`
_adv_done=
rdiff_keep=60D
rdiff_directory=/backup/`hostname`
+ rdiff_type=remote
rdiff_user=
rdiff_host=
rdiff_user=
rdiff_host=