Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
How to automatically sync s3 bucket to a local folder

Im trying to have a replica of my s3 bucket in a local folder. it should be updated when a change occurs on the bucket. I see many options to do it using lambda functions but im asking about the usage of s3 cli command:

aws s3 sync s3://my-bucket . --delete

which will download any files exists on the bucket, and also delete local files that exists locally but missing from the bucket (expected behavior).

Is there any problem to loop it forever with few sec of delay, like?

while true; do aws s3 sync s3://my-bucket . --delete; sleep 3s; done

Is there any limitation of the number of api calls i can do per second ? is there a better solution ?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Are you on linux? You could stick your command in a shell script and run it as a cronjob

* * * * * /path/to/your/script

^ Runs every minute

*/10 * * * * /path/to/your/script

^ Runs every 10 minutes

That would be much more reliable than a bash script in a loop.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda