From 6d6227f7ba62435256274073c6bd2d2187c994fc Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Sat, 30 May 2026 05:42:00 +0000 Subject: [PATCH] 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). --- compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index f3ab954..7833521 100644 --- a/compose.yml +++ b/compose.yml @@ -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: