From b43a49877229b3b2874525fb66356eb3fa34088d Mon Sep 17 00:00:00 2001 From: Igor Diakonov Date: Fri, 20 Sep 2019 13:40:43 +0300 Subject: [PATCH] Added recreating existing tables --- postgres-restore-s3/restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres-restore-s3/restore.sh b/postgres-restore-s3/restore.sh index 0a8adef..d7bc863 100644 --- a/postgres-restore-s3/restore.sh +++ b/postgres-restore-s3/restore.sh @@ -73,7 +73,7 @@ fi echo "Restoring ${LATEST_BACKUP}" -psql $POSTGRES_HOST_OPTS -d $POSTGRES_DATABASE < dump.sql +psql $POSTGRES_HOST_OPTS -C -c --if-exists -d $POSTGRES_DATABASE < dump.sql echo "Restore complete"