搭配 rclone 使用加密备份工具 restic
2021-03-02
1 min read
常用命令
# 在rclone的OneIndex桶中创建restic初始化仓库
restic -r rclone:OneIndex:restic init
# 备份指定目录至上述仓库
restic -r rclone:OneIndex:restic --verbose backup ~/radicale
# 列出仓库中存在的快照
restic -r rclone:OneIndex:restic snapshots
# 挂载远程仓库
restic -r rclone:OneIndex:restic mount /mnt/restic
# 还原最新备份至指定目录
restic -r rclone:OneIndex:restic --verbose restore --target ~/radicale
定时备份
sudo vim /etc/crontab
7 */12 * * * root RESTIC_PASSWORD=<restic密码> restic -r rclone:OneIndex:restic bakcup ~/radicale