Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda