Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.