Mercurial > public > ssdt-docker
view scripts/backup-usas.sh @ 136:72f15ffc9ad2
DEP-12: convert compose files to 3.1. remove template. update bash script to create composite docker-files without extends. prevent overwriting manual changes to docker-comose.yml
author | smith@nwoca.org |
---|---|
date | Mon, 15 May 2017 23:07:10 +0100 |
parents | 334d65dac778 |
children | 303259c08b7d |
line wrap: on
line source
#!/bin/bash docker-compose run --rm usasdb sh -c \ "pg_dump -Cc --if-exists --host=usasdb \ --dbname=\$USASDB_ENV_DB_NAME \ --username=\$USASDB_ENV_DB_USER | gzip \ > /backup/\$USASDB_ENV_DB_NAME.$(date +%Y-%m-%d-%H-%M-%S).backup.gz"