跨平台项目同步工具
由于项目众多,单一通过自己的代码托管平台存在一定风险。此项目将定期将代码同步到其他平台,以防止代码丢失。
比如把 data/repo.txt 中的项目同步到 github 上:
python repo_sync.py --debug true --repo data/repo.txt --type github
1、项目以 zhizhou/github 作为项目源,同步到其他平台。 2、同步项目最好每月定时执行一次,以防止代码丢失。
vim /etc/crontab
0 0 1 * * python repo_sync.py --type github