fix(backup): use volume-relative backup path (backupbot restores it) + drop rm post-hook

backupbot restores backed-up files by volume; an absolute backup.path is not mapped back into the
volume on restore, so the restore.post-hook reimported a missing dump. Use
backupbot.backup.volumes.mysql.path=backup.sql.gz (mirrors the postgres recipes).
This commit is contained in:
autonomic-bot
2026-05-30 05:42:00 +00:00
parent a1e95fcbcd
commit 6d6227f7ba

View File

@ -77,8 +77,7 @@ services:
labels:
- "backupbot.backup=true"
- "backupbot.backup.pre-hook=/mysql_backup.sh backup"
- "backupbot.backup.post-hook=rm -f /var/lib/mysql/backup.sql.gz"
- "backupbot.backup.path=/var/lib/mysql/backup.sql.gz"
- "backupbot.backup.volumes.mysql.path=backup.sql.gz"
- "backupbot.restore.post-hook=/mysql_backup.sh restore"
healthcheck: