Skip to content

Instantly share code, notes, and snippets.

@ipepe
Created December 11, 2017 12:34
Show Gist options
  • Select an option

  • Save ipepe/4c7b913905b78adfe65bc4896f3bfe23 to your computer and use it in GitHub Desktop.

Select an option

Save ipepe/4c7b913905b78adfe65bc4896f3bfe23 to your computer and use it in GitHub Desktop.
Dumping command for postgres database backup
pg_dump -d DATABASE_NAME -Fp | bzip2 > dbdump_`date +"%F-%H-%M-%S"`.sql.bz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment