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 Risposta
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
ESPERTO
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande