diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-08-13 13:00:49 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-08-13 13:00:49 +0300 |
commit | 288a671984a2b68b45c22dedde78ecc7a7f89a82 (patch) | |
tree | c979d6c104d07a93f39672511e15404fe2ea1ed1 /bin/byteback-backup | |
parent | f57d788d2d598303c93e0ae13507b1e1155bc386 (diff) |
Run-parts against our pre-backup directory.
If the /etc/byteback/pre-backup.d/ directory is present then
execute the contents.
Diffstat (limited to 'bin/byteback-backup')
-rwxr-xr-x | bin/byteback-backup | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/byteback-backup b/bin/byteback-backup index 6f34591..4d1b237 100755 --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -113,7 +113,6 @@ end ## if __FILE__ == $PROGRAM_NAME - ME = $PROGRAM_NAME.split('/').last opts = Trollop.options do @@ -261,6 +260,13 @@ if __FILE__ == $PROGRAM_NAME # fatal("Could not read ssh key #{@ssh_key}") unless File.readable?(@ssh_key) + + # + # Run our pre-backup actions, if any + # + run_parts( "/etc/byteback/pre-backup.d/" ) + + # # Test ssh connection is good before we start # |