restic — deduplicated backups
cheat sheet · restic 0.16 https://lab.dimsanych.ru/en/wiki/restic/Cheat sheet
-
restic initcreate the repository, once -
restic backup /path --tag dailytake a snapshot -
restic snapshotslist snapshots -
restic restore latest --target /restorerestore the latest snapshot -
restic forget --keep-daily 7 --keep-weekly 4 --pruneapply the retention policy -
restic checkcheck repository integrity -
restic unlockremove a stuck lock
Options
--prune on forget is not cosmetic: without it, forgotten snapshots
stop being listed, but the disk blocks they used stay put and no space is
freed. --tag on backup, and the --tag filter on snapshots/forget,
keep separate backup schedules (daily/weekly) apart within one repository.