s3fs 可以同时挂载不同的bucket 和不同的账户吗?

Can s3fs mount different bucket and different account simultaneously?

s3fs可以同时挂载不同账户的不同bucket,这样我就可以将A账户bucket的文件夹转移到B账户bucket吗?

请告诉我该怎么做。 或者有其他方法可以满足我的需求。

谢谢。

s3fs 一次只能挂载一个 bucket/mountpoint。但是,您可以通过以下方式使用单独的凭据同时安装两个存储桶:

s3fs -o passwd_file=/path/to/creds1 bucket1 mnt1
s3fs -o passwd_file=/path/to/creds2 bucket2 mnt2

如果您想在同一个 passwd 或 AWS 配置文件中存储多个凭据,还有一些其他变体;有关详细信息,请参阅 man s3fs