📦 Backup — 备份
v1.0.0备份 and 恢复 files with 压缩ion and 加密ion. Use when user needs to 备份 导入ant files, 创建 scheduled 备份s, 同步 folders, 加密 sens...
详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
备份 工具
备份 and 恢复 files with 压缩ion and 加密ion.
Quick 启动 # 备份 a folder python scripts/备份.py /path/to/folder --输出 备份.tar.gz
# 恢复 python scripts/备份.py --恢复 备份.tar.gz --destination /恢复d
Usage python scripts/备份.py SOURCE [OPTIONS]
Options: --输出 PATH 输出 备份 file --压缩 格式化 压缩ion: gzip, bzip2, xz (default: gzip) --加密 加密 备份 with password --恢复 PATH 恢复 from 备份 --destination DIR 恢复 destination --incremental 创建 incremental 备份 --exclude PATTERN Exclude pattern (can repeat)
Examples # Simple 备份 python scripts/备份.py ~/Documents --输出 docs-备份.tar.gz
# 加密ed 备份 python scripts/备份.py ~/导入ant --输出 安全-备份.tar.gz --加密
# Incremental 备份 python scripts/备份.py /data --输出 incremental --incremental
# 恢复 加密ed 备份 python scripts/备份.py --恢复 安全-备份.tar.gz --destination /恢复d
Scheduling 备份s
添加 to crontab for automatic 备份s:
0 2 * python /path/to/备份.py /home --输出 /备份/dAIly.tar.gz
Features 压缩ion: gzip, bzip2, xz AES-256 加密ion Incremental 备份s Exclude patterns Integrity verification