aboutsummaryrefslogtreecommitdiff
path: root/restore.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-05-28 18:37:26 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-05-28 18:46:14 +0300
commit8ceb3484f218d25e025deb618ae3d202e2599dab (patch)
tree21b551664e24a420d1c967ace2144ee12f3adecd /restore.in
parent74940a305bb009a690e56d6d6562b3fd24269ae0 (diff)
downloadbeam-8ceb3484f218d25e025deb618ae3d202e2599dab.tar.gz
beam-8ceb3484f218d25e025deb618ae3d202e2599dab.tar.bz2
Incorporate s3 support. Change hook handling.
(Additionally: mysql.sh has been tested.) * .gitignore: Add s3mount.sh * Makefile.am: Build and install s3mount (conditionally). * backup-cleanup: Rename to backup-cleaner. * backup.conf (backup_retain_interval) (backup_bucket_name,backup_mp_s3backer) (backup_mp_s3): New variables. * backup.in: Change hook handling: each hook is a list of commands which are executed in succession. New option --version (-V). Run backup-cleaner if backup_retain_interval is set. * restore.in: Change hook handling. New option --version (-V). * configure.ac: Change version to 1.1. New option --with-s3. * doc/backup.conf.5in: Document new variables and changes in the hook handling. * examples/.gitignore: Remove. * examples/Makefile.am: Remove s3mount. * examples/s3mount.in: Remove. * lib/backup/Makefile.am (libbackup_SCRIPTS, EXTRA_DIST): Add s3.sh * lib/backup/common.in: Source backup/s3 if backup_bucket_name is set. (runhook,print_version): New function. * lib/backup/s3.sh: New file. * s3mount.in: New file.
Diffstat (limited to 'restore.in')
-rw-r--r--restore.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/restore.in b/restore.in
index ac1000b..7466a4f 100644
--- a/restore.in
+++ b/restore.in
@@ -43,6 +43,8 @@ OPTIONS:
-h, --help produce this help list
Valid ITEMs are: $backup_items
+
+Report bugs to <@PACKAGE_BUGREPORT@>
EOT
exit 0
}
@@ -57,6 +59,7 @@ do
-l|--logfile) shift; logfile=$1; confirm=0;;
-n|--dry-run) dry_run=echo;;
-h|--help) help;;
+ -V|--version) print_version;;
-L|--level) shift; level=$1;;
-R|--round) shift; round=$1;;
-W|--week) shift; week=$1;;
@@ -84,8 +87,8 @@ if [ -n "$logfile" ]; then
exec 2>&1
fi
-$prologue_hook
-test -z "$epilogue_hook" && trap "$epilogue_hook" EXIT INT QUIT TERM
+runhook prologue_hook
+trap "runhook epilogue_hook" EXIT INT QUIT TERM
# Guess missing values
if [ -z "$week" ]; then
@@ -134,8 +137,8 @@ do
${type}_restore $item
done
-$epilogue_hook
trap '' EXIT INT QUIT TERM
+runhook epilogue_hook
logit "finished"

Return to:

Send suggestions and report system problems to the System administrator.