Mercurial > public > ssdt-docker
comparison scripts/backup-usas.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 |
comparison
equal
deleted
inserted
replaced
141:06611703da29 | 163:daf91a3bbee5 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 docker-compose run --rm usasdb sh -c \ | 2 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" |
3 "pg_dump -Cc --if-exists --host=usasdb \ | 3 |
4 --dbname=\$USASDB_ENV_DB_NAME \ | 4 ${SSDT_SCRIPTS}/backup-container.sh usasdb |
5 --username=\$USASDB_ENV_DB_USER | gzip \ | 5 |
6 > /backup/\$USASDB_ENV_DB_NAME.$(date +%Y-%m-%d-%H-%M-%S).backup.gz" |