4

一个使用KuaiPan备份linux服务器的脚本

 2 years ago
source link: https://byronhe.com/post/2014/02/08/kuaipan-backup-script/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

一个使用KuaiPan备份linux服务器的脚本

近日需要给服务器做备份,在网上找到了一个现成的金山快盘的api:https://github.com/deren/python-kuaipan (感谢!)
试了一下,遂决定备份到金山快盘上。

备份脚本考虑了以下几个方面的要求:
1.上传之前一定要加密,对比之后,使用了openssl的aes-256-cbc加密算法
2.增量备份,最开始尝试用duplicity,写了一个duplicity的backend,然后发现,好复杂!猛然发现,linux上的tar就有 增量备份功能,于是直接用了tar
3.分卷,KuaiPan有文件大小限制,此处用了split把tar文件分卷

代码放在 https://github.com/byronhe/kuaipan_backup

博客迁移到octopress a http proxy script


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK