Skip to content

Instantly share code, notes, and snippets.

@stachjankowski
Last active May 11, 2021 13:05
Show Gist options
  • Save stachjankowski/71f63962519a32ebd99a06d7ca251caa to your computer and use it in GitHub Desktop.
Save stachjankowski/71f63962519a32ebd99a06d7ca251caa to your computer and use it in GitHub Desktop.
PostgreSQL dump with pv inception
pg_dump dbname | pv --rate --progress --eta --size $(pg_dump dbname | pv | wc --bytes) | psql -h remote.server dbname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment