Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!