Sha256: f319e50b5ea9060ed3ca15f4e59332cdf9ecebfc8bad6003e4ffdfec9f7d41c1

Contents?: true

Size: 274 Bytes

Versions: 11

Compression:

Stored size: 274 Bytes

Contents

#!/bin/bash

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

Version data entries

11 entries across 11 versions & 1 rubygems

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