Mercurial > public > ssdt-docker
view scripts/backup-usps.sh @ 140:73c0c04a44eb production v1.1.1
flow: Merged <hotfix> 'v1.1.1' to <master> ('production').
author | smith@nwoca.org |
---|---|
date | Fri, 16 Jun 2017 17:14:15 +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"