diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-06-22 08:28:46 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-06-22 08:28:46 +0300 |
commit | 9e95716abf0a45e0ee11b1a313f684df71d7188a (patch) | |
tree | 24b626513b861fa35f1871062b50e09963987c22 | |
parent | 219198f642d6044b7443a26bfed9cc1e3480cbf9 (diff) | |
download | beam-9e95716abf0a45e0ee11b1a313f684df71d7188a.tar.gz beam-9e95716abf0a45e0ee11b1a313f684df71d7188a.tar.bz2 |
Fix invocation of beam-cleaner.
* backup.in: Unset dry_run instead of initializing it to emtpy
string.
(backup): Run beam-cleaner after running prologue hooks, so that
it sees a mounted backup directory.
-rw-r--r-- | backup.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,7 +41,7 @@ else verbose= fi # Set it to "echo" to initiate dry-run mode. -dry_run= +unset dry_run # Number of tar errors detected during the run tarerror=0 @@ -98,6 +98,9 @@ done backup() { logit "started" + runhook prologue_hook + trap "runhook epilogue_hook" EXIT INT QUIT TERM + if test -n "$backup_retain_interval" && test $backup_retain_interval -gt 0; then @LIBEXECDIR@/beam-cleaner --retain $backup_retain_interval $verbose \ @@ -106,9 +109,6 @@ backup() { ${dry_run+--dry-run} --suffix .db $backup_snapshot_dir fi - runhook prologue_hook - trap "runhook epilogue_hook" EXIT INT QUIT TERM - for item in $backup_items do eval type=\$${item}_type |