summaryrefslogtreecommitdiff
path: root/bin/byteback-backup
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-08-13 12:45:04 +0300
committerSteve Kemp <steve@steve.org.uk>2015-08-13 12:45:04 +0300
commit0fc32727474ed8f072a1692bb0e91178b2a6c663 (patch)
tree85756524974e26a7ae7ad2ba7dd92a9a367d76df /bin/byteback-backup
parent5d76f4b26a4f538db75f9594a8ab516dae79680a (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-xbin/byteback-backup9
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
##