Show Posts
|
Pages: [1]
|
2
|
General Category / Questions / s3cmd.rb to create subfolders?
|
on: May 21, 2008, 05:52:13 PM
|
Is it possible to have s3cmd.rb create, say, /datamatraex/testing1/testing2?
When I try ruby s3cmd.rb createbucket datamatraex/testing1/testing2 It will make the folders but then it puts this blank file in the last folder and the folders aren't actually marked as "testing2_$folder$". It shows as "testing2/" then when I browse into that subfolder there is a blank file in there. Once I delete that blank file the subfolders /testing1/ & /testing2/ get deleted as well.
I hope this is making sense. Bottom line a can't figure out how to create subfolders inside of the bucket.
Thanks for the help!
|
|
|
4
|
General Category / General Discussion / Re: 403 Forbidden
|
on: May 19, 2008, 02:26:57 PM
|
I got it working.
ruby s3sync.rb --delete -d /etc/s3sync/localuploadfolder/ testingatempfolder: I also did ruby s3sync.rb -r --ssl --delete /etc/s3sync/localuploadfolder/ testingatempfolder:
|
|
|
5
|
General Category / General Discussion / Re: 403 Forbidden
|
on: May 19, 2008, 01:29:47 PM
|
Thanks ferrix I tried and it didn't work.
cedar:/etc/s3sync# ruby s3sync.rb -d /etc/s3sync/localuploadfolder/ mybucket:testingatempfolder s3Prefix testingatempfolder localPrefix /etc/s3sync/localuploadfolder/ localTreeRecurse /etc/s3sync/localuploadfolder Test /etc/s3sync/localuploadfolder/testingthisfile.txt local item /etc/s3sync/localuploadfolder/testingthisfile.txt local node object init. Name:testingthisfile.txt Path:/etc/s3sync/localuploadfolder/testingthisfile.txt Size:34 Tag:071a898d2663f7bc83761a0435790209 Date:Thu May 15 22:30:44 UTC 2008 s3TreeRecurse mybucket testingatempfolder Creating new connection Trying command list_bucket mybucket max-keys 200 prefix testingatempfolder delimiter / with 100 retries left Response code: 403 S3 command failed: list_bucket max-keys 200 prefix testingatempfolder delimiter / With result 403 Forbidden <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>B83BCAA691A4FF99</RequestId><HostId>KAc83VZYsE9ZHA6QOeD/jJ3eabHFzDovm19tHm4vNKWtS8FGn8eaP3zTGTH8pIY9</HostId></Error> S3 ERROR: #<Net::HTTPForbidden:0x40600ec4> s3sync.rb:290:in `+': can't convert nil into Array (TypeError) from s3sync.rb:290:in `s3TreeRecurse' from s3sync.rb:346:in `main' from ./thread_generator.rb:79:in `call' from ./thread_generator.rb:79:in `initialize' from ./thread_generator.rb:76:in `new' from ./thread_generator.rb:76:in `initialize' from s3sync.rb:267:in `new' from s3sync.rb:267:in `main' from s3sync.rb:735
Any other ideas? Thanks again.
|
|
|
6
|
General Category / General Discussion / 403 Forbidden
|
on: May 16, 2008, 03:56:31 PM
|
Here's what I'm running. Ruby - 1.8.5 s3sync - latest - downloaded from s3.amazonaws.com/ yesterday OS: Debian
Here's what I tried to run. I made a local folder at /etc/s3sync/localuploadfolder & I made a folder on S3 "testingatempfolder"
cedar:/etc/s3sync# ruby s3sync.rb -r -d --ssl --delete /etc/s3sync/localuploadfolder/ mybucket:/testingatempfolder s3Prefix /testingatempfolder localPrefix /etc/s3sync/localuploadfolder/ localTreeRecurse /etc/s3sync/localuploadfolder Test /etc/s3sync/localuploadfolder/testingthisfile.txt local item /etc/s3sync/localuploadfolder/testingthisfile.txt local node object init. Name:testingthisfile.txt Path:/etc/s3sync/localuploadfolder/testingthisfile.txt Size:34 Tag:071a898d2663f7bc83761a0435790209 Date:Thu May 15 22:30:44 UTC 2008 s3TreeRecurse mybucket /testingatempfolder Creating new connection Trying command list_bucket mybucket max-keys 200 prefix /testingatempfolder delimiter / with 100 retries left Response code: 403 S3 command failed: list_bucket max-keys 200 prefix /testingatempfolder delimiter / With result 403 Forbidden <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>D3AA59A933A022B9</RequestId><HostId>BF/3yMC4DfQBOp/rzV38z0uCQnB7IkPKO4TCsUsekmMtjT6PK0GY5+yu3mNshlOv</HostId></Error> S3 ERROR: #<Net::HTTPForbidden:0x406005dc> s3sync.rb:290:in `+': can't convert nil into Array (TypeError) from s3sync.rb:290:in `s3TreeRecurse' from s3sync.rb:346:in `main' from ./thread_generator.rb:79:in `call' from ./thread_generator.rb:79:in `initialize' from ./thread_generator.rb:76:in `new' from ./thread_generator.rb:76:in `initialize' from s3sync.rb:267:in `new' from s3sync.rb:267:in `main' from s3sync.rb:735
|
|
|
|