From cc0efdf6b8204e32f3b8bbeb44839098ecfa9c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Wed, 17 Jul 2024 15:35:03 +0200 Subject: [PATCH] Add -c to pg_dump --- fixbackup/backup/postgresql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fixbackup/backup/postgresql.py b/fixbackup/backup/postgresql.py index 6d9e30d..323ff51 100644 --- a/fixbackup/backup/postgresql.py +++ b/fixbackup/backup/postgresql.py @@ -66,6 +66,7 @@ def backup(args: Namespace, backup_file_path: Path, timeout: int = 900, compress command = [ "pg_dump", "-w", + "-c", "--if-exists", "--inserts", "-h",