简单:备份应该是一个无摩擦的过程,否则你可能会想跳过它。Restic应该易于配置和使用,这样,在数据丢失的情况下,你就可以恢复它。同样,恢复数据也不应该很复杂。
快速:使用restic备份数据应仅受网络或硬盘带宽的限制,以便您可以每天备份文件。如果需要太多时间,没有人会做备份。还原备份应该只传输要还原的文件所需的数据,这样这个过程也会很快。
可验证:比备份更重要的是恢复,因此restic使您能够轻松验证所有数据都可以恢复。
安全:Restic使用密码学来保证数据的机密性和完整性。假设备份数据的存储位置不是受信任的环境(例如,共享空间,系统管理员等其他人可以访问您的备份)。Restic旨在保护您的数据免受此类攻击者的攻击。
高效:随着数据的增长,额外的快照应该只占用实际增量的存储空间。更重要的是,在将重复数据实际写入存储后端之前,应该对其进行重复数据消除,以节省宝贵的备份空间。
$ restic init --repo /tmp/backup
enter password for new backend:
enter password again:
created restic backend 085b3c76b9 at /tmp/backup
Please note that knowledge of your password is required to access the repository.
Losing your password means that your data is irrecoverably lost.
restic --repo /tmp/backup backup ~/work
enter password for repository:
scan [/home/user/work]
scanned 764 directories, 1816 files in 0:00
29] 100.00% 54.732 MiB/s 1.582 GiB / 1.582 GiB 2580 / 2580 items 0 errors ETA 0:00 :
duration: 0:29, 54.47MiB/s
snapshot 40dc1520 saved
restic -r /srv/restic-repo restore 79766175 --target /tmp/restore-work
enter password for repository:
restoring <Snapshot of [/home/user/work] at 2015-05-08 21:40:19.884408621 +0200 CEST> to /tmp/restore-work
本地目录
SFTP服务(通过SSH)
HTTP REST 服务
Amazon S3(或者Minio)
OpenStack Swift
BackBlaze B2
Microsoft Azure Blob Storage
Google Cloud Storage
其它支持rclone的后端