直接使用pg_dump的RDS到S3(无中介) [英] RDS to S3 using pg_dump directly (without intermediary)

查看:129
本文介绍了直接使用pg_dump的RDS到S3(无中介)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在RDS或S3中运行pg_dump(无需使用诸如ec2之类的中介来执行命令)

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

推荐答案

只要您的数据库安全组允许外部访问端口5432(postgres的默认设置),您就应该能够访问它。然后,您可以运行:

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 <database_host> -U <username> <database>

请记住,您的连接不会被加密。

Keep in mind that your connection will not be encrypted.

AFAIK,RDS和S3之间在AWS中没有接口,因此您必须使用中介将数据传输到S3。

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.

这篇关于直接使用pg_dump的RDS到S3(无中介)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆