From d1335cacc9522bc4bf38ae17c9948cd64918c666 Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Fri, 16 Dec 2022 17:02:13 -0500 Subject: [PATCH] Clean up inside container after backup --- compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.yml b/compose.yml index 1bea921..7c31345 100644 --- a/compose.yml +++ b/compose.yml @@ -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: