diff scripts/backup-usps.sh @ 28:443aa0be3f09

update backup/restore scripts
author smith@nwoca.org
date Mon, 18 Jan 2016 21:28:26 +0000
parents 727f4cbded5e
children 334d65dac778
line wrap: on
line diff
--- a/scripts/backup-usps.sh	Mon Jan 18 15:21:45 2016 -0500
+++ b/scripts/backup-usps.sh	Mon Jan 18 21:28:26 2016 +0000
@@ -1,6 +1,6 @@
 
  docker-compose run --rm uspsdb sh -c \
-   "pg_dump -Cc --host=uspsdb \
+   "pg_dump -Cc --if-exists --host=uspsdb \
       --dbname=\$USPSDB_ENV_DB_NAME \
 	  --username=\$USPSDB_ENV_DB_USER | gzip \
 	  > /backup/\$USPSDB_ENV_DB_NAME.$(date +%Y-%m-%d-%H-%M-%S).backup.gz"