modem7-docker-borgmatic/base-fullbuild/data/borgmatic.d/before-backup.example

16 wiersze
289 B
Plaintext

# shellcheck shell=sh
#!/usr/bin/with-contenv sh
timestamp() {
date -I'seconds' # ISO-8601 format
}
# Any steps necessary to prepare the backup (stopping the service/taking
# a snapshot...
do_something() {
echo 'Doing something'
}
echo "$(timestamp) - Starting backup"
do_something