完全删除某空间下的文件
[root@h101 copy]# ../qshell_linux_amd64 listbucket qiniucloud-goods list.video
[root@h101 copy]# ../qshell_linux_amd64 batchdelete qiniucloud-goods list.video
<DANGER> Input hdbiha to confirm operation: hdbiha
All deleted!
[root@h101 copy]#
批量复制七牛空间中的文件到另一个空间
准备列表
[root@h101 copy]# ../qshell_linux_amd64 listbucket qiniucloud-people coffee/video t.video
[root@h101 copy]# ../qshell_linux_amd64 listbucket qiniucloud-people coffee/audio t.audio
[root@h101 copy]# awk '{print $1}' t.video >> all.list
[root@h101 copy]# awk '{print $1}' t.audio >> all.list
[root@h101 copy]# less all.list
进行复制
[root@h101 copy]# ../qshell_linux_amd64 batchcopy qiniucloud-people qiniucloud-goods all.list
<DANGER> Input aijbdc to confirm operation: aijbdc
All Copyed!
[root@h101 copy]#
输出本地指定路径下所有的文件列表
[root@h101 abc]# ../qshell_linux_amd64 dircache /root/qshell/abc /tmp/iii
2015/11/10 21:28:02 [INFO][qshell] dir_cache.go:18: No cache file `/tmp/iii' found, will create one
2015/11/10 21:28:02 [INFO][qshell] dir_cache.go:36: Walk `/root/qshell/abc' start from `2015-11-10 21:28:02.039784717 +0800 CST'
2015/11/10 21:28:02 [INFO][qshell] dir_cache.go:64: Walk `/root/qshell/abc' end at `2015-11-10 21:28:02.040013828 +0800 CST'
2015/11/10 21:28:02 [INFO][qshell] dir_cache.go:65: Walk `/root/qshell/abc' last for `254.615us'
[root@h101 abc]# cat /tmp/iii
abc.txt 300 14471476202016185
bdlogo.png 5331 14068942770000000
qiniucloud-goods.list.txt 106 14471460520916193
i 221 14471620636996111
qshell_darwin_386 7885316 14471460520296193
qshell_windows_386.exe 8027136 14471460520916193
[root@h101 abc]#
可以直接在qshell后面加一个命令,然后不指定参数,来查看其用法
[root@h101 abc]# ../qshell_linux_amd64 sync
Usage: qshell [-d] sync <SrcResUrl> <Bucket> <Key> [<UpHostIp>]
Sync big file to qiniu bucket
[root@h101 abc]# ../qshell_linux_amd64 prefop
Usage: qshell [-d] prefop <PersistentId>
Query the fop status
[root@h101 abc]# ../qshell_linux_amd64 b64encode
Usage: qshell [-d] b64encode [<UrlSafe>] <DataToEncode>
Base64 Encode
[root@h101 abc]#
原文地址
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。