如何通过 R Studio 从 S3 存储桶同步和读取文件 - 使用 Putty 通过 SSH 连接到本地主机?

How to sync and read files from S3 bucket through R Studio - SSH'ed to local host with Putty?

我是 AWS、RStudio 和 SSH 的新手,所以这听起来可能微不足道,但我需要迫切的帮助。

我能够通过遵循一些资源来 SSH 实例和 RStudio,但现在我想定期从 public S3 存储桶同步和读取文件。我可以获取存储桶内容并尝试使用 s3read_using() 命令读取,但文件大于它支持的大小,我无法读取。

如何同步 S3 存储桶和读取文件?任何帮助表示赞赏。

您可以使用 aws CLI s3 sync 方法将存储桶与文件夹同步

The sync command is used to sync directories to S3 buckets or prefixes and vice versa. It recursively copies new and updated files from the source ( Directory or Bucket/Prefix ) to the destination ( Directory or Bucket/Prefix ). It only creates folders in the destination if they contain one or more files.

供参考和使用:

https://codedestine.com/aws-s3-sync-command/