view scripts/backup-usps.sh @ 107:dc3696525de4 feature/djs-DEP-12-docker

merge from default
author smith@nwoca.org
date Fri, 21 Apr 2017 17:17:24 +0100
parents 334d65dac778
children 303259c08b7d
line wrap: on
line source
#!/bin/bash
 docker-compose run --rm uspsdb sh -c \
   "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"