Clean up inside container after backup

This commit is contained in:
Chris Thompson 2022-12-16 17:02:13 -05:00
parent 5597b60ac5
commit bf83995fce
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ services:
labels:
- "backupbot.backup=true"
- "backupbot.backup.pre-hook=sh -c 'PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /tmp/backup.sql'"
- "backupbot.backup.post-hook=rm -f /tmp/backup.sql"
- "backupbot.backup.path=/tmp/"
volumes:
postgres: