运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install restic-home-backup
镜像加速npx clawhub@latest install restic-home-backup --registry https://cn.longxiaskill.com镜像同步中
技能文档
简介
为 Linux 主目录提供加密备份解决方案,利用 restic、systemd 自动化、自定义保留策略和恢复验证。使用指南
- 安装 restic:确保 restic 已安装在您的 Linux 系统上。
- 配置 systemd 服务:设置自动备份任务。
- 定义保留策略:根据需要配置数据保留时间。
- 验证恢复:定期检查备份的可恢复性。
命令示例
# 初始化备份存储 restic init# 执行备份 restic backup /home/user
# 列出备份 restic snapshots
注意
- 请替换
/home/user为您想要备份的目录。 - 确保备份存储有足够的空间。