Skip to content

Instantly share code, notes, and snippets.

@codeck
Created October 29, 2013 03:02
Show Gist options
  • Save codeck/7208569 to your computer and use it in GitHub Desktop.
Save codeck/7208569 to your computer and use it in GitHub Desktop.
backup pg db
PGHOST=root@remotehost
eval "ssh ${PGHOST} pg_dump -Fc webdb" > webdb-`date +%F.%H%M`.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment