七牛云备份命令

Posted by Tony Chan on 2019-02-26

由于最近博客搬家, 使用了七牛云

image

批量上传


blog.json

1
2
3
4
5
6
{
"src_dir": "/Users/tonychan/Pictures/qiniu",
"bucket": "tonystudio-ml",
"rescan_local": true,
"skip_suffixes": ".DS_Store"
}
1
qshell qupload blog.json

批量下载


qshell listbucket tonystudio-ml  > list
cat list | awk -F ' ' ' {print "http://oss.zhcoco.com/"$1}' > urlList

将tonystudio-ml 和 http://oss.zhcoco.com 改成自己的变量即可


Reference:

GitHub Repo:Tony Studio

Follow: CoderTonyCHan · GitHub