0

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?

asked Sep 12, 2016 at 1:36
1
  • 1
    Use pg_dump. I don't understand the problem. Commented Sep 12, 2016 at 5:37

1 Answer 1

2

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

answered Sep 12, 2016 at 6:06
2
  • 1
    What does 'won't work' mean? Also, 'normal'? Commented 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 db Commented Sep 12, 2016 at 8:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.