aboutsummaryrefslogtreecommitdiff
path: root/restore.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-05-25 15:48:38 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-05-25 16:21:32 +0300
commit74940a305bb009a690e56d6d6562b3fd24269ae0 (patch)
tree91e110503760b00817da16e9fcfe8536435ba352 /restore.in
parentbb2c9e35cd16f12ec085a4ab46b7744a556a7f1a (diff)
downloadbeam-74940a305bb009a690e56d6d6562b3fd24269ae0.tar.gz
beam-74940a305bb009a690e56d6d6562b3fd24269ae0.tar.bz2
Add mysql.sh (untested). More configuration examples.
* Makefile.am: Install backup-cleanup. * backup-cleanup: New file. * backup.in (tar_version_options): Remove. (taroptions): Add -c. * examples/Makefile.am (EXTRA_DIST): Add s3mount.in (noinst_SCRIPTS): Add s3mount.sh * examples/backup.conf.s3 (prologue): Cleanup old files. * examples/s3mount.in: New file. * examples/.gitignore: New file. * lib/backup/Makefile.am (libbackup_SCRIPTS) (EXTRA_DIST): Add mysql.sh * lib/backup/fs.sh (fs_backup): Remove -c option: it is present in $taroptions by default. * lib/backup/mysql.sh: New file. * lib/backup/postgres.sh (postgres_backup): Fix variable name, * restore.in: More error checking.
Diffstat (limited to 'restore.in')
-rw-r--r--restore.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/restore.in b/restore.in
index 74d63b0..ac1000b 100644
--- a/restore.in
+++ b/restore.in
@@ -104,6 +104,7 @@ if [ -z "$round" ]; then
sed 's/.*-'$week'-\([0-9][0-9]*\)-[0-9][0-9]*\..*/\1/' |
sort +0 -1 |
tail -1)
+ test -z "$round" && abend 1 "cannot determine last round number"
fi
if [ -z "$level" ]; then
@@ -113,6 +114,7 @@ if [ -z "$level" ]; then
sed 's/.*-'$week-$round'-\([0-9][0-9]*\)\..*/\1/' |
sort +0 -1 |
tail -1)
+ test -z "$level" && abend 1 "cannot determine last level number"
fi
echo "$0: target root directory $root"

Return to:

Send suggestions and report system problems to the System administrator.