我知道如果将转储存储在我的机器中,如何将pg转储还原到RDS数据库中,但是当转储在远程位置可用时,我怎么能这样做,比如说Amazon S3?
我想做的是这样的事情:
pg_restore -h somedomain.us-east-1.rds.amazonaws.com -p 5432 -d databasename -U username https://s3.amazonaws.com/database.dump
但当然这会导致
pg_restore: [archiver] could not open input file "https://s3.amazonaws.com/database.dump"
感谢您的帮助!