Sha256: d747798f1e0c28e3bebb3b71e49bc452052d8b31213927094d7cbd43e4ca7adb

Contents?: true

Size: 261 Bytes

Versions: 11

Compression:

Stored size: 261 Bytes

Contents

#!/bin/bash

PGPASSWORD="mysecretpassword"

sudo docker run -it --link postgrestest_app_1:postgres --rm -e PGPASSWORD=$PGPASSWORD postgres /bin/bash -c 'pg_dumpall -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres' > $1/backup.sql

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dockersitter-0.8.1 lib/templates/admin/examples/postgres_backup
dockersitter-0.8.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.7.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.6.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.5.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.4.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.3.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.2.2 lib/templates/admin/examples/postgres_backup
dockersitter-0.2.1 lib/templates/admin/examples/postgres_backup
dockersitter-0.2.0 lib/templates/admin/examples/postgres_backup
dockersitter-0.1.0 lib/templates/admin/examples/postgres_backup