本帖最后由 C5yaTwj9eXcJBG 于 2025-12-11 14:28 编辑
网上找到腾讯云轻量服务器定时快照脚本是单用户单地域(https://white-night.club/index.php/2024/04/19/pg29/),用ai给优化了下,实现了多用户多地域的轻量云服务器快照的功能。
仓库地址:https://gitee.com/glsnames/lighthost_snapshop
配置文件(参照config_temple.json编写):
腾讯云子用户编程访问,授权范围为轻量云读写全控制,生成id和key。
指定轻量云服务器的地域id,或者留空也可。
运行方式
•
• # 安装腾讯云sdk
• pip install tencentcloud-sdk-python --break-system-packages
• 运行脚本
• python ./snap.py --config ./config.json
•
• # 安装腾讯云tccli
• pip install tccli --break-system-packages
• 运行脚本
• bash ./snap.sh --config ./config.json
网上找到腾讯云轻量服务器定时快照脚本是单用户单地域(https://white-night.club/index.php/2024/04/19/pg29/),用ai给优化了下,实现了多用户多地域的轻量云服务器快照的功能。
仓库地址:https://gitee.com/glsnames/lighthost_snapshop
配置文件(参照config_temple.json编写):
腾讯云子用户编程访问,授权范围为轻量云读写全控制,生成id和key。
指定轻量云服务器的地域id,或者留空也可。
运行方式
•
• # 安装腾讯云sdk
• pip install tencentcloud-sdk-python --break-system-packages
• 运行脚本
• python ./snap.py --config ./config.json
•
• # 安装腾讯云tccli
• pip install tccli --break-system-packages
• 运行脚本
• bash ./snap.sh --config ./config.json