view scripts/backup-usas.sh @ 55:77ff739c078d

add script to provide shortened docker ps with ssdt labels
author smith@nwoca.org
date Thu, 25 Feb 2016 08:47:45 -0500
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"