Data Tango: Exploring Restic

restic

What is restic?

Restic is a free and open source backup program available on Linux, BSD, MacOS, and Windows. It works with many different storage types (Local, Network, Cloud) and is designed to create and manage backups.

Key features:
Deduplication
Encryption
Incremental Backups
Snapshot Management
Cross-platform Compatibility

Create Restic repository as backup destination

restic -r D:/dpx-restic init

Initiate backup

restic -r D:/dpx-restic backup C:/Users/MATT-THINKPAD/Documents/dpx-source/

Check snapshots

restic -r D:\dpx-restic snapshots

List files in repository

restic -r D:\dpx-restic ls latest

Verifying backups

restic check D:\dpx-restic

Restoring files

restic -r D:\dpx-restic\ restore "latest:/C/Users/MATT-THINKPAD/Documents/dpx-source/" --target "C:\Users\MATT-THINKPAD\OneDrive - nyu.edu\Desktop\dpx-restore"

Restore files from a specific snapshot

Get a list of snapshots

restic -r 'D:\dpx-restic\' snapshots

Restore from snapshot

restic -r D:\dpx-restic restore 2297f849 --target "C:\Users\MATT-THINKPAD\OneDrive - nyu.edu\Desktop\dpx-restore"