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.

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠