Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been using s3cmd to sync local files on our server with the S3 bucket. There are over 200,000 files on the local server. Can't seem to find any documentation on the site that explains how to upload ONLY files that do not exist in the destination bucket? It appears to be uploading all files every time.

What is the command to sync ONLY files that:

  • Do not exist in the destination bucket
  • Do exist in the destination bucket, but have different last-modified date, or different filesize

Here is the command I've been using:

> s3cmd put [DIRECTORY] --recursive s3://[BUCKET]/[PATH]/

Thanks in advance!

share|improve this question
up vote 3 down vote accepted
$ s3cmd sync <source> <dest>
share|improve this answer
Good stuff! Thank you :) – FurryWombat Feb 3 '13 at 17:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.