restic 备份工具

简介
Restic 是一个快速、安全、高效的备份工具,具有以下特点:
✅ 加密存储:所有数据使用 AES-256 加密
✅ 去重压缩:相同数据只存储一次,节省空间
✅ 多后端支持:支持本地、SFTP、S3、Azure、Google Cloud 等
✅ 增量备份:只备份变化的部分,速度快
✅ 跨平台:支持 Linux、macOS、Windows
✅ 单一文件:无需数据库,便于部署和迁移

文档地址 https://restic.readthedocs.io/en/stable/020_installation.html

快速使用

# 初始化
restic init --repo D:\Backups\restic-repo

# 备份
restic backup --repo D:\Backups\restic-repo C:\Users\Name

# 查看快照
restic snapshots --repo D:\Backups\restic-repo

# 恢复
restic restore --repo D:\Backups\restic-repo latest --target C:\Restore

# 清理旧备份
restic forget --repo D:\Backups\restic-repo --keep-daily 7 --prune

# 检查健康
restic check --repo D:\Backups\restic-repo

posted @ 2026-03-31 16:17  LiuChengloong  阅读(53)  评论(0)    收藏  举报