3
0
mirror of https://kolaente.dev/konrad/docker-db-backup.git synced 2026-01-10 02:50:08 +01:00

feat: add backup compression

This commit is contained in:
kolaente
2024-02-13 16:45:10 +01:00
parent 49510a6179
commit 5acf40d86e
7 changed files with 54 additions and 9 deletions

View File

@@ -26,5 +26,5 @@ func (d *PostgresDumper) Dump(c *client.Client) error {
user = u
}
return runAndSaveCommandInContainer(getDumpFilename(d.Container.Name), c, d.Container, "pg_dumpall", "-U", user)
return runAndSaveCommandInContainer(c, d.Container, "pg_dumpall", "-U", user)
}