Looking for aws cli efs to sync

0

I was expecting to find a command for syncing, similar to aws s3 sync... at https://docs.aws.amazon.com/cli/latest/reference/efs/ and https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/index.html

I need to sync with an EFS instance in these ways:

  1. Make the EFS contents identical to my local folder, including deleting items not present locally. This is for dev/testing use.
  2. Or, only add items that are missing in EFS. Do not replace or delete any. This is for production use.

I'm not trying to sync to/from s3 nor do I want syncs to happen automatically, so DataSync isn't relevant. https://docs.aws.amazon.com/efs/latest/ug/transfer-data-to-efs.html It seems there should be a cli option that's easier to use than Transfer Family.

MODDZP
已提问 6 个月前300 查看次数
1 回答
0

Hello.

Since EFS is a file server, files cannot be manipulated unless they are mounted from an OS such as Linux.
In other words, there is no function to manipulate data in EFS from AWS API etc.
I think an effective method is to mount EFS on Linux EC2 etc. and synchronize with the sync command.
https://repost.aws/knowledge-center/efs-copy-data-in-parallel

profile picture
专家
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则