Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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'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/


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

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .