Backup and restore
bash
restic backup /etc /var/www # take a snapshot
restic backup /data --exclude-file=excl.txt --tag weekly --one-file-system
restic snapshots # list (ID, date, host, paths, tags)
restic snapshots --tag weekly --host web1 # filter
restic restore latest --target /restore # restore the latest
restic restore <ID> --target /restore --include /etc/nginx # partial restore
restic mount /mnt/backup # mount and browse files (FUSE)
restic diff <ID1> <ID2> # what changed between snapshots
restic ls latest /etc # list files inside a snapshot