comparison scripts/backup-usas.sh @ 26:93f2976a6c2f

add usas backup script
author Dave smith <smith@nwoca.org>
date Sun, 17 Jan 2016 19:53:40 -0500
parents
children 443aa0be3f09
comparison
equal deleted inserted replaced
25:727f4cbded5e 26:93f2976a6c2f
1
2 docker-compose run --rm usasdb sh -c \
3 "pg_dump -Cc --host=usasdb \
4 --dbname=\$USASDB_ENV_DB_NAME \
5 --username=\$USASDB_ENV_DB_USER | gzip \
6 > /backup/\$USASDB_ENV_DB_NAME.$(date +%Y-%m-%d-%H-%M-%S).backup.gz"