diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-08-13 12:45:04 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-08-13 12:45:04 +0300 |
commit | 0fc32727474ed8f072a1692bb0e91178b2a6c663 (patch) | |
tree | 85756524974e26a7ae7ad2ba7dd92a9a367d76df /bin/byteback-backup | |
parent | 5d76f4b26a4f538db75f9594a8ab516dae79680a (diff) |
Run all scripts in the post-completion directory.
If the directory /etc/byteback/post-backup.d/ exists then run
all scripts in it, once we've completed our run.
Diffstat (limited to 'bin/byteback-backup')
-rwxr-xr-x | bin/byteback-backup | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/byteback-backup b/bin/byteback-backup index 872469d..84d39e5 100755 --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -97,7 +97,16 @@ def rsync(*sources) end +# +# Run all the executable-scripts in the specified directory. +# +def run_parts(dir) + if File.directory? dir + args = ['run-parts', dir ] + log_system(*args) + end +end ## |