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
asked 6 months ago290 views
1 Answer
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
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions