borgmatic-base/scripts/consul

19 lines
240 B
Bash

#!/bin/bash
hook_check() {
:
}
hook_pre() {
consul snapshot save /etc/restore/consul.snap
}
hook_post() {
:
}
case "$1" in
before_check) hook_check;;
before_backup) hook_pre;;
after_backup) hook_post;;
esac