Created
January 29, 2016 09:29
-
-
Save mascot6699/3ad60e631471fb38af0c 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
# For dumping the database | |
pg_dump -W -U <username> -h localhost <dbname> > <file_name> | |
# For loading the database | |
psql -W -U <username> -H <db_name> < <file_name> | |
# for uploading a file on server | |
scp -i server.pem <file_name> ubuntu@url:<file_name> | |
# for downloading a file | |
scp -i server.pem ubuntu@url:<file_name> <file_name> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment