Skip to content

Instantly share code, notes, and snippets.

@yglodt
Created February 7, 2019 07:55
Show Gist options
  • Save yglodt/21eaf5521c3297d104e7de77e6addedd to your computer and use it in GitHub Desktop.
Save yglodt/21eaf5521c3297d104e7de77e6addedd to your computer and use it in GitHub Desktop.
#!/bin/sh
pg_dump --verbose --host db.host.name --username myuser --file ~/mydatabase-`date +%Y%m%d-%H%M%S`.dump -F c mydatabase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment