RDS to S3 using pg_dump directly (without intermediary)

前端 未结 2 1033
温柔的废话
温柔的废话 2021-02-07 11:28

It\'s possible run pg_dump in the RDS or in a S3 (without using a intermediary like ec2 to execute the command)

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 12:08

    You should be able to access it as long as your db security group allows external access to port 5432 (default for postgres). Then you can just run:

    pg_dump -h  -U  
    

    Keep in mind that your connection will not be encrypted.

    AFAIK, there is no interface in AWS between RDS and S3, so you would have to use an intermediary to transfer the data to S3.

提交回复
热议问题