# HG changeset patch # User Dave smith # Date 1453078235 18000 # Node ID 727f4cbded5e4fe873773ed1fc6e6df099832e55 # Parent cea023cef5b2451396708aa72d8c00014ebd02c9 add usps backup script diff -r cea023cef5b2 -r 727f4cbded5e scripts/backup-usps.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/backup-usps.sh Sun Jan 17 19:50:35 2016 -0500 @@ -0,0 +1,6 @@ + + docker-compose run --rm uspsdb sh -c \ + "pg_dump -Cc --host=uspsdb \ + --dbname=\$USPSDB_ENV_DB_NAME \ + --username=\$USPSDB_ENV_DB_USER | gzip \ + > /backup/\$USPSDB_ENV_DB_NAME.$(date +%Y-%m-%d-%H-%M-%S).backup.gz"