Sha256: c39a8a216a0e5a1b2c6a76b69be539fbf256ffa8526e716b45e3094801097747

Contents?: true

Size: 342 Bytes

Versions: 9

Compression:

Stored size: 342 Bytes

Contents

#!/bin/sh

# Downloads a live dump from Heroku remote

# Exit if any subcommand fails
set -e

target="${1:-staging}"

heroku pg:backups:capture --remote "$target"
heroku pg:backups:download --remote "$target"
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $(whoami) -d <%= app_name %>_development latest.dump
rm latest.dump

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
welaika-suspenders-3.0 templates/bin_import_dump.erb
welaika-suspenders-2.36 templates/bin_import_dump.erb
welaika-suspenders-2.35 templates/bin_import_dump.erb
welaika-suspenders-2.34 templates/bin_import_dump.erb
welaika-suspenders-2.33 templates/bin_import_dump.erb
welaika-suspenders-2.32.2 templates/bin_import_dump.erb
welaika-suspenders-2.32.1 templates/bin_import_dump.erb
welaika-suspenders-2.32.0 templates/bin_import_dump.erb
welaika-suspenders-2.31.0 templates/bin_import_dump.erb