Skip to content

Commit c1c60a2

Browse files
committed
Drop db before restoring
1 parent c512997 commit c1c60a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ case "${PG_BACKUP_ACTION:-dump}" in
5656
curl -o dump.backup $PG_BACKUP_FILE
5757

5858
echo "Restoring $POSTGRES_DB database"
59-
pg_restore -C -d $POSTGRES_DB $POSTGRES_HOST_OPTS dump.backup
59+
pg_restore -c -C -d $POSTGRES_DB $POSTGRES_HOST_OPTS dump.backup
6060
;;
6161
esac

0 commit comments

Comments
 (0)