RESTIC-REPAIR-SNAPSHOTS(1)
π οΈ 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 includingtag[,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 like5mor2h(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
- arch rolling: restic 0.19.1-1 Β· BSD
- epel 10: restic 0.19.1-1.el10_3 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- epel 9: restic 0.19.1-1.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- fedora 43: restic 0.19.1-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- fedora 44: restic 0.19.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- nixpkgs unstable: restic 0.19.1
- ubuntu stonking: restic 0.19.1-1ubuntu1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms