Skip to content

Instantly share code, notes, and snippets.

@khiemdoan
Created March 8, 2023 09:16
Show Gist options
  • Save khiemdoan/6d418f3d1a915d872ddb79568c0bd17e to your computer and use it in GitHub Desktop.
Save khiemdoan/6d418f3d1a915d872ddb79568c0bd17e to your computer and use it in GitHub Desktop.

Restore postgres database

pg_restore --verbose --clean --no-acl --no-owner --host=localhost --dbname=db_name --username=username latest.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment