zerobyte
zerobyte copied to clipboard
[Request] Run custom script(s) before backing up
Hi,
First of all, thanks for this amazing project, I LOVE it!
Before using Zerobyte, I just used a simple bash script that ran a Restic CLI command every night. The script basically created some database dumps before running the actual backup:
# Export Wiki.js db
docker compose -f /stacks/wiki-js/compose.yaml exec db pg_dump wiki -U wikijs -F c > /stacks/wiki-js/wiki-js-db.dump
restic -r /mnt/restic --verbose backup /stacks
restic -r /mnt/restic --verbose forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prune
This script made sure critical database backups were included in my Restic backup. Would it be possible to achieve this with Zerobyte?