RESTIC-REPAIR-SNAPSHOTS(1)

πŸ“¦
version 0.19.1 Β· 4 versions
, in arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu stonking

πŸ› οΈ restic-repair-snapshots(1) β€” the manual page, but make it cute

okay bestie, so you've got the restic-repair-snapshots(1) page open and honestly? it's giving "emergency room for your backups" πŸ©ΉπŸ’–. This is the restic repair snapshots command, and she is not playing around. Let's get into it.


✨ NAME ✨

restic-repair-snapshots β€” repair snapshots πŸ› οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

restic repair snapshots [flags] [snapshot ID] [...]

πŸ’œ DESCRIPTION πŸ’œ

So the repair snapshots command does exactly what it says on the tin: it repairs broken snapshots. It scans the snapshots you hand it and generates new ones with the damaged directories and file contents removed. And if you then delete the broken snapshots, a prune run will be able to clean up the repository. slay, cleanup era 🧹✨

Buuut β€” and this is important, bestie β€” the command depends on a correct index, so make sure to run repair index first! fr fr, don't skip that step πŸ™ˆ


🚨 WARNING 🚨

Repairing and deleting broken snapshots causes data loss! It will remove broken directories and modify broken files in the modified snapshots. 😭

If the contents of directories and files are still available, the better option is to run backup, which in that case is able to heal existing snapshots. Only use the repair snapshots command if you need to recover an old and broken snapshot! πŸ‘‘

Like, genuinely β€” backup is the main character here if it can help. repair snapshots is the last-resort girlie. πŸ’…


πŸŽ€ EXIT STATUS πŸŽ€

  • Exit status is 0 if the command was successful ✨
  • Exit status is 1 if there was any error 😭
  • Exit status is 10 if the repository does not exist πŸ’€
  • Exit status is 11 if the repository is already locked πŸ”’
  • Exit status is 12 if the password is incorrect πŸ”‘

🌸 OPTIONS 🌸

  • -n, --dry-run[=false] β€” do not do anything, just print what would be done πŸ‘€ (vibe check first, always)
  • --forget[=false] β€” remove original snapshots after creating new ones πŸ—‘οΈ
  • -h, --help[=false] β€” help for snapshots 🫢
  • -H, --host=[] β€” only consider snapshots for this host (can be specified multiple times, use empty string to unset default value) (default: $RESTIC_HOST) 🏠
  • --path=[] β€” only consider snapshots including this (absolute) path (can be specified multiple times, snapshots must include all specified paths) πŸ“
  • --tag=[] β€” only consider snapshots including tag[,tag,...] (can be specified multiple times) 🏷️

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these are the ones she got from her parent commands, and they're iconic ngl πŸ’…

  • --cacert=[] β€” file to load root certificates from (default: use system certificates or $RESTIC_CACERT) πŸ”
  • --cache-dir="" β€” set the cache directory. (default: use system default cache directory) πŸ—‚οΈ
  • --cleanup-cache[=false] β€” auto remove old cache directories 🧹
  • --compression=auto β€” compression mode (only available for repository format version 2), one of (auto|off|fastest|better|max) (default: $RESTIC_COMPRESSION) πŸ—œοΈ
  • --http-user-agent="" β€” set a http user agent for outgoing http requests 🌐
  • --insecure-no-password[=false] β€” use an empty password for the repository, must be passed to every restic command (insecure) ⚠️
  • --insecure-tls[=false] β€” skip TLS certificate verification when connecting to the repository (insecure) ⚠️
  • --json[=false] β€” set output mode to JSON for commands that support it πŸ€–
  • --key-hint="" β€” key ID of key to try decrypting first (default: $RESTIC_KEY_HINT) πŸ”‘
  • --limit-download=0 β€” limits downloads to a maximum rate in KiB/s. (default: unlimited) ⬇️
  • --limit-upload=0 β€” limits uploads to a maximum rate in KiB/s. (default: unlimited) ⬆️
  • --no-cache[=false] β€” do not use a local cache 🚫
  • --no-extra-verify[=false] β€” skip additional verification of data before upload (see documentation) πŸ™ˆ
  • --no-lock[=false] β€” do not lock the repository, this allows some operations on read-only repositories πŸ”“
  • -o, --option=[] β€” set extended option (key=value, can be specified multiple times) βš™οΈ
  • --pack-size=0 β€” set target pack size in MiB, created pack files may be larger (default: $RESTIC_PACK_SIZE) πŸ“¦
  • --password-command="" β€” shell command to obtain the repository password from (default: $RESTIC_PASSWORD_COMMAND) 🐚
  • -p, --password-file="" β€” file to read the repository password from (default: $RESTIC_PASSWORD_FILE) πŸ“„
  • -q, --quiet[=false] β€” do not output comprehensive progress report 🀫
  • -r, --repo="" β€” repository to backup to or restore from (default: $RESTIC_REPOSITORY) πŸ—„οΈ
  • --repository-file="" β€” file to read the repository location from (default: $RESTIC_REPOSITORY_FILE) πŸ“
  • --retry-lock=0s β€” retry to lock the repository if it is already locked, takes a value like 5m or 2h (default: no retries) πŸ”
  • --stuck-request-timeout=5m0s β€” duration after which to retry stuck requests ⏳
  • --tls-client-cert="" β€” path to a file containing PEM encoded TLS client certificate and private key (default: $RESTIC_TLS_CLIENT_CERT) πŸͺͺ
  • -v, --verbose[=0] β€” be verbose (specify multiple times or a level using --verbose=n, max level/times is 2) πŸ—£οΈ

πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page, bestie! 🫢 this one was generated by restic generate, dated Jan 2017, and it lives under the manual name restic backup(1) β€” yeah, the header says backup, we don't ask questions, we just vibe. go heal those snapshots responsibly, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from