A Python-based tool for automatically monitoring and backing up GitHub repository releases.
- Monitor specified GitHub repositories for new releases
- Automatically download source code of new versions
- Support download progress bar and retry mechanism
- Proxy support for network access
- Detailed logging system
- Error handling and automatic retries
- Python 3.7+
- Required packages listed in
requirements.txt
- Clone this repository
- Install dependencies:
pip install -r requirements.txt- Configure your GitHub token in
config.pyor set it as an environment variable - Add your target repositories to
config.py
Simply run:
python backup.pyThe script will:
- Check for new releases of specified repositories
- Download new versions if available
- Save all files to the
downloadsdirectory
Edit config.py to customize:
- GitHub token
- Repository list
- Proxy settings
- Logging preferences
- Retry parameters
这是一个基于 Python 的 GitHub 仓库发布版本自动监控和备份工具。
- 监控指定的 GitHub 仓库的最新发布版本
- 自动下载新版本的源代码
- 支持下载进度条和重试机制
- 支持网络代理配置
- 详细的日志记录系统
- 错误处理和自动重试
- Python 3.7+
- 所需包已列在
requirements.txt中
- 克隆此仓库
- 安装依赖:
pip install -r requirements.txt- 在
config.py中配置你的 GitHub token 或设置为环境变量 - 在
config.py中添加目标仓库
直接运行:
python backup.py脚本将会:
- 检查指定仓库的新版本
- 如有新版本则自动下载
- 所有文件保存在
downloads目录下
编辑 config.py 可以自定义:
- GitHub 访问令牌
- 仓库列表
- 代理设置
- 日志配置
- 重试参数