From 0fc32727474ed8f072a1692bb0e91178b2a6c663 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 13 Aug 2015 12:45:04 +0300 Subject: 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. --- bin/byteback-backup | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ## -- cgit v1.2.3