Created
September 15, 2022 18:34
-
-
Save ajzeigert/7b924dd9e58e576011c757b266b77703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_dump -Fc db_name > backup_file_with_date -U username -h endpoint.host.com | |
createdb db_name | |
pg_restore -d db_name backup_file_name_with_date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment