$heroku pgbackups:capture --expire
Download the backup to your local file folder
$curl -o latest.dump `heroku pgbackups:url`
Lastly, override your local development db (replacing username and dbname below)
$pg_restore --verbose --clean --no-acl --no-owner -h localhost -U [username] -d [dbname] latest.dump
No comments:
Post a Comment