Mercurial > public > ssdt-docker
view scripts/backup-usps.sh @ 157:018f62da1931
DEP-12: add docker version. prevent pulling updates for dangling images
author | smith@nwoca.org |
---|---|
date | Mon, 31 Jul 2017 20:49:53 +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"