Skip to content

Instantly share code, notes, and snippets.

@beyoung
Created March 6, 2019 12:59
Show Gist options
  • Save beyoung/ceaed85670aa9e3ef42c51a33b0a71ae to your computer and use it in GitHub Desktop.
Save beyoung/ceaed85670aa9e3ef42c51a33b0a71ae to your computer and use it in GitHub Desktop.

数据备份:pg_dump -h [host] -p [3433] -U [user] -F c -b -v -f file.backup [dbname]

数据还原:pg_restore -h [host] -p [3433] --dbname=[dbname] --jobs=4 --verbose file.backup -U [user]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment