Skip to content

Instantly share code, notes, and snippets.

@edubskiy
Created March 17, 2021 20:46
Show Gist options
  • Save edubskiy/005267d59cf07c56523e071b61caa2f7 to your computer and use it in GitHub Desktop.
Save edubskiy/005267d59cf07c56523e071b61caa2f7 to your computer and use it in GitHub Desktop.
PGPASSWORD="PASSWORD" pg_dump -U USER_NAME -h 127.0.0.1 -p 5432 DATABASE_NAME > DATABASE_NAME-$(date +%d-%m-%Y_%H-%M-%S).sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment