comparison scripts/backup-usps.sh @ 163:daf91a3bbee5 production v1.2.0

flow: Merged <release> 'v1.2.0' to <master> ('production').
author smith@nwoca.org
date Tue, 15 Aug 2017 21:59:23 +0100
parents 303259c08b7d
children 620ea742f1df
comparison
equal deleted inserted replaced
141:06611703da29 163:daf91a3bbee5
1 #!/bin/bash 1 #!/bin/bash
2 docker-compose run --rm uspsdb sh -c \ 2
3 "pg_dump -Cc --if-exists --host=uspsdb \ 3 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh"
4 --dbname=\$USPSDB_ENV_DB_NAME \ 4
5 --username=\$USPSDB_ENV_DB_USER | gzip \ 5 ${SSDT_SCRIPTS}/backup-container.sh uspsdb
6 > /backup/\$USPSDB_ENV_DB_NAME.$(date +%Y-%m-%d-%H-%M-%S).backup.gz" 6