Assuming I have this directory structure:
Folder/
File1
File2
I wish to upload to the S3 bucket called "bucket". When I use the command
$ s3cmd put Folder/ s3://bucket/
it will end up uploading the directory and files, but the files will not be contained in the directory:
S3://bucket/Folder/
s3://bucket/File1
s3://bucket/File2
The correct result should be:
S3://bucket/Folder/
s3://bucket/Folder/File1
s3://bucket/Folder/File2
s3cmd version 0.9.9.91
Use the source without trailing '/', i.e,
s3cmd put -r Folder s3://bucket/
That should do the trick. It's a behaviour similar to rsync.
Michal