Saturday, March 16, 2019

Restic for Deduplicated backups!


Restic
------

- Uses deduplication for fast and efficient backups.
- Written in go.
- Runs on Linux and Windows.
- Can be used in cloud, remote, or local backups.

Initializes as backup location
restic -r /opt/backups init
Takes a backup
restic -r /opt/backups --verbose backup /home/john/myfiles
List backups as snapshots
restic -r /opt/backups snaphots
Restore a backup to a target directory
restic -r /opt/backups restore <snapshot ID> --target /tmp/restored-data
Restores latest backup
restic -r /opt/backups restore latest --target /tmp/restored-data
Compares differences between 2 snapshots
restic -r /opt/backups diff <snapshot ID 1> <snapshot ID 2>

Sources: