Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to copy files with s3cmd to a bucket with an existing folder structure. Both structures already exist both on local dev machine and in the bucket.

The folders structure is as follows /dir2/

dir2/
  00001/
  00002/
  00003/
  ...

Problem is when I'm trying to copy the info from my local machine to the bucket as follows

s3cmd put --acl-public --recursive --verbose /home/user/dir1/dir2/ s3://my.bucket/assets/dir1/dir2/

I'm getting the following output.

INFO: Compiling list of local files...
INFO: Applying --exclude/--include
INFO: Summary: 0 local files to upload

Looks like since the folders already exists on the bucket, s3cmd avoid copying the files from local machine beside the fact that they're not on the bucket (just the folders and other, different named files).

Any idea how to copy the files even when there's an existing sub-folder structure inside?

share|improve this question
    
Could you just pipe find output to s3cmd? –  Christopher Jul 27 '12 at 9:48

1 Answer 1

I've found the trick here is to add --include * to the flags.

share|improve this answer

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.