Menu

#64 s3cmd put does not follow directory structure

Malfunction
closed-invalid
nobody
s3cmd (120)
5
2010-08-22
2010-08-21
Hanxue Lee
No

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

Discussion

  • Michal Ludvig

    Michal Ludvig - 2010-08-22

    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

     
  • Michal Ludvig

    Michal Ludvig - 2010-08-22
    • status: open --> closed-invalid
     

Log in to post a comment.