我有s3cmd命令行工具,Linux的安装。它工作正常,将文件复制到桶中。不过,我想将文件移动到一个文件夹。我知道,文件夹本身不S3的支持,但我Cyberduck的GUI工具将他们很好,我查看我的备份。
I have the s3cmd command line tool for linux installed. It works fine to put files to the bucket. However, I want to move a file into a 'folder'. I know that folders aren't natively supported by S3, but my Cyberduck GUI tool converts them nicely for me to view my backups.
目前我在叶片的根部,称为test.mov比如一个文件。我想将其移动到观念的文件夹。我想这样的:
Currently I have a file in the root of the bucket, called 'test.mov' for example. I want to move it to the 'idea' folder. I am trying this:
s3cmd mv s3://mybucket/test.mov s3://mybucket/idea/test.mov
但我得到奇怪的错误,如:
but I get strange errors like:
WARNING: Retrying failed request: /idea/test.mov (timed out)
WARNING: Waiting 3 sec...
我也试过报价,但是这并没有帮助:
I also tried quotes, but that didn't help either:
s3cmd mv 's3://mybucket/test.mov' 's3://mybucket/idea/test.mov'
也没有刚才的文件夹名称
neither did just the folder name
s3cmd mv 's3://mybucket/test.mov' 's3://mybucket/idea/'
有内不必删除和reput这个3GB的文件?
Is there a way within having to delete and reput this 3GB file?
更新:仅供参考,我可以把新的文件直接导入这样的文件夹:
Update: Just FYI, I can put new files directly into a folder like this:
s3cmd put test2.mov s3://mybucket/idea/test2.mov
但还是不知道如何将他们身边......
But still don't know how to move them around....
要移动/从一个桶到另一个或同一个桶我使用s3cmd工具和工作正常复制。例如:
To move/copy from one bucket to another or the same bucket I use s3cmd tool and works fine. For instance:
s3cmd cp --r s3://bucket1/directory1 s3://bucket2/directory1
s3cmd mv --recursive s3://bucket1/directory1 s3://bucket2/directory1