My team has hosted a django project in AWS with a Postgres RDS instance. What is the proper way to get export the database into SQL or pg_dump?
1 Answer 1
There is an interesting thing in RDS postgresql. I had the same issue, normal pg_dump won't work. Use the below command
pg_dump -Fc -v -h [endpoint of instance] -U [master username] [database]> [database].dump
Refer link: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Procedural.Importing.html
-
1What does 'won't work' mean? Also, 'normal'?András Váczi– András Váczi2016年09月12日 07:10:22 +00:00Commented Sep 12, 2016 at 7:10
-
Pg_dump -h endpoint -d db -u user > back.sql this command won't work for RDS, it'll trigger some errors while restoring the dbTheDataGuy– TheDataGuy2016年09月12日 08:33:35 +00:00Commented Sep 12, 2016 at 8:33
Explore related questions
See similar questions with these tags.
pg_dump
. I don't understand the problem.