Where to start First steps track · 15 stages
Linux Labs

restic — deduplicated backups

cheat sheet · restic 0.16 https://lab.dimsanych.ru/en/wiki/restic/

Cheat sheet

  • restic init create the repository, once
  • restic backup /path --tag daily take a snapshot
  • restic snapshots list snapshots
  • restic restore latest --target /restore restore the latest snapshot
  • restic forget --keep-daily 7 --keep-weekly 4 --prune apply the retention policy
  • restic check check repository integrity
  • restic unlock remove 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.

Loading…