# HG changeset patch # User Dave smith # Date 1453078420 18000 # Node ID 93f2976a6c2f60f924135a5b0e65f738dddb109e # Parent 727f4cbded5e4fe873773ed1fc6e6df099832e55 add usas backup script diff -r 727f4cbded5e -r 93f2976a6c2f scripts/backup-usas.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/backup-usas.sh Sun Jan 17 19:53:40 2016 -0500 @@ -0,0 +1,6 @@ + + docker-compose run --rm usasdb sh -c \ + "pg_dump -Cc --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"