Mercurial > public > ssdt-docker
view scripts/backup-usas.sh @ 155:570e192c21b4
DEP-12: fix permissions
author | Dave smith <smith@nwoca.org> |
---|---|
date | Fri, 21 Jul 2017 11:01:26 -0400 |
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"