view scripts/backup-usas.sh @ 54:334d65dac778

add hash bangs to specify bash shell
author smith@nwoca.org
date Wed, 24 Feb 2016 18:23:42 +0000
parents 443aa0be3f09
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"