aboutsummaryrefslogtreecommitdiff
path: root/handlers/rdiff.helper
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-07-08 19:21:46 +0000
committerElijah Saxon <elijah@riseup.net>2005-07-08 19:21:46 +0000
commit67b5cf70d7a48bf9333e448b0d1ca53aacc252ea (patch)
treeeacabdac106ffe6963df16a714935162b69ea2d2 /handlers/rdiff.helper
parent1d3e3482bef095acc4e3d2ebd058037b7710001b (diff)
downloadbackupninja-67b5cf70d7a48bf9333e448b0d1ca53aacc252ea.tar.gz
backupninja-67b5cf70d7a48bf9333e448b0d1ca53aacc252ea.tar.bz2
made it so that helpers are dynamically defined.
Diffstat (limited to 'handlers/rdiff.helper')
-rw-r--r--handlers/rdiff.helper15
1 files changed, 9 insertions, 6 deletions
diff --git a/handlers/rdiff.helper b/handlers/rdiff.helper
index 2efbe11..2ad2a49 100644
--- a/handlers/rdiff.helper
+++ b/handlers/rdiff.helper
@@ -1,10 +1,13 @@
+
+HELPERS="$HELPERS rdiff:incremental_remote_filesystem_backup"
+
do_rdiff_dest() {
- startForm "rdiff action wizard"
+ formBegin "rdiff action wizard"
formItem "keep" "$rdiff_keep"
formItem "dest_directory" "$rdiff_directory"
formItem "dest_host" "$rdiff_host"
formItem "dest_user" "$rdiff_user"
- displayForm
+ formDisplay
[ $? = 1 ] && return;
set -- $REPLY
@@ -18,7 +21,7 @@ do_rdiff_dest() {
}
do_rdiff_src() {
- startForm "rdiff action wizard: includes"
+ formBegin "rdiff action wizard: includes"
formItem include /var/spool/cron/crontabs
formItem include /var/backups
formItem include /etc
@@ -29,7 +32,7 @@ do_rdiff_src() {
formItem include
formItem include
formItem include
- displayForm
+ formDisplay
[ $? = 1 ] && return;
rdiff_includes=
@@ -39,11 +42,11 @@ do_rdiff_src() {
done
set +o noglob
- startForm "rdiff action wizard: excludes"
+ formBegin "rdiff action wizard: excludes"
formItem exclude '/home/*/.gnupg'
formItem exclude
formItem exclude
- displayForm
+ formDisplay
[ $? = 1 ] && return;
rdiff_excludes=