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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南