From f7a15c6d8674b046f179f90342bca950a96c1880 Mon Sep 17 00:00:00 2001 From: Nicco Date: Thu, 5 Dec 2019 00:22:01 +0100 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 30f18f8..8a65b2e 100644 --- a/README.md +++ b/README.md @@ -201,6 +201,25 @@ backends: ... ``` +### Before / After hooks + +Sometimes you might want to stop an app/db before backing up data and start the service again after the backup has completed. This is what the hooks are made for. Simply add them to your location config. You can have as many commands as you wish. + +```yaml +locations: + my-location: + from: /data + to: + - local + - remote + hooks: + before: + - echo "Hello" + - echo "Human" + after: + - echo "kthxbye" +``` + ## Contributors This amazing people helped the project!