docker-restic-cron/tests/scripts/pre-backup.sh
ViViDboarder b2d95cc775 Add support for pre/post scripts
Allows adding scripts to a directory to be executed before backups and
after restorating. This can allow backing up a mysql dump or something.

Using these could (and probably does) break verify checks

Fixes #8
2018-09-27 18:09:20 -07:00

8 lines
133 B
Bash
Executable File

set -e
# Pretend we have some database
echo "insert foo into bar;" > /mydb.txt
# Let's dump that db
cat /mydb.txt > /data/dump.txt