将postgresql表存档到s3
flush的Python项目详细描述
冲洗
将postgresql表归档到s3。
在指定的s3存储桶中将postgresql表的所有数据库行刷新(导出和删除)到csv中的cli工具。有助于在小型基础架构环境中存档数据和节省资金。
用法
确保使用正确的aws凭据(就像使用boto:https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html#configuration)。
然后:
pip install flush
flush postgres://localhost:5432/mydatabase tablename mybucket --truncate