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

165
Visualizações
S3 Bucket - Move File Rather Than Delete When Doing sync

aws has the s3 sync option, which has the delete option. So running something like:

aws --delete s3 sync /files/ s3://files/

Would delete all the files from s3://files/ that have been deleted from /files/ on the local server. I don't want to delete things from s3://files/ I want to move them to another bucket.

What I'd like to do is something more like a MOVE than a DELETE. Move out of one bucket into another if a file has been removed from the local server. So I first figure out what has been deleted from /files/ and then move that out of s3://files/ and into s3://deleted-files/

I know "s3 sync" has --dry-run, but it's not clear to me the most efficient way to do this. I can use just about anything to make it happen, though I'll be triggering this via cron.

about 4 years ago · Santiago Trujillo
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