Skip to content

Instantly share code, notes, and snippets.

@crmaxx
Last active December 23, 2015 11:43
Show Gist options
  • Save crmaxx/b2c64edd48b22b629502 to your computer and use it in GitHub Desktop.
Save crmaxx/b2c64edd48b22b629502 to your computer and use it in GitHub Desktop.
PGPASSWORD=pass /opt/metasploit/postgresql/bin/pg_dump -h localhost -U user_name -b -Fc db_name | bzip2 -c > `date +"%Y-%m-%d_%H_%m_%s"`.bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment