From: micah Date: Sat, 24 Nov 2007 21:53:15 +0000 (+0000) Subject: added local support to rdiff helper X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=573bc5a7b8f680247469a36c451f7b20ab17d787;p=matthijs%2Fupstream%2Fbackupninja.git added local support to rdiff helper git-svn-id: http://code.autistici.org/svn/backupninja/trunk@501 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index 72c5923..5baf383 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,7 @@ version 0.9.5 -- unreleased . Handle "keep = yes" to disable old backups removal (Closes: #424633) . Add configuration option to allow you to disable the version check as in some instances this may be an ok scenario (Closes: #424632) + . Added local destination support to helper (Closes: Trac#4) rub/rsync . Fixed typo in rub handler that caused it to not work . Changed to use lib/vserver code 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=