aboutsummaryrefslogtreecommitdiff
path: root/handlers/rdiff.helper.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-11-24 21:53:15 +0000
committerMicah Anderson <micah@riseup.net>2007-11-24 21:53:15 +0000
commit88541957d80a661c54efe067a92d1ab7a02c96c0 (patch)
tree3b55fc9fd21a4df36f2127e56840c047902ced22 /handlers/rdiff.helper.in
parent3f2a826652cb804c9abd14b3808f7a7a4648258a (diff)
downloadbackupninja-88541957d80a661c54efe067a92d1ab7a02c96c0.tar.gz
backupninja-88541957d80a661c54efe067a92d1ab7a02c96c0.tar.bz2
added local support to rdiff helper
Diffstat (limited to 'handlers/rdiff.helper.in')
-rw-r--r--handlers/rdiff.helper.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/handlers/rdiff.helper.in b/handlers/rdiff.helper.in
index 42bcb1b..1055280 100644
--- 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_type" "$rdiff_type"
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_type=${tmp_array[4]}
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
+ 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
@@ -386,6 +391,7 @@ rdiff_wizard() {
_adv_done=
rdiff_keep=60D
rdiff_directory=/backup/`hostname`
+ rdiff_type=remote
rdiff_user=
rdiff_host=