Skip to content

Instantly share code, notes, and snippets.

@ewalk153
Created July 24, 2014 21:06
Show Gist options
  • Select an option

  • Save ewalk153/8a1604ab8ac3f97d757a to your computer and use it in GitHub Desktop.

Select an option

Save ewalk153/8a1604ab8ac3f97d757a to your computer and use it in GitHub Desktop.
Faster restore of postgres backup by ignoring certain data
pg_restore -l cr2.dump > db.list
# edit db.list
pg_restore --verbose --clean --no-acl --no-owner -h {HOST} -U {USER} -d {DATABASE} -L db.list cr2.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment