view scripts/backup-usas.sh @ 102:56796bfabd89 release/v1.1.0

flow: Closed <release> 'v1.1.0'.
author smith@nwoca.org
date Tue, 11 Apr 2017 02:18:48 +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"