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:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user