RESTIC-CHECK(1)

πŸ’– restic-check(1) πŸ’–

okay bestie, so this page lives in the restic backup(1) manual (yes, the header's a little chaotic, we don't talk about it πŸ’…) β€” and it's all about the check command. let's get into it, no cap.


✨ NAME ✨

restic-check β€” check the repository for errors πŸ”


πŸŽ€ SYNOPSIS πŸŽ€

restic check [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the check command tests your repository for errors and reports literally any error it finds. it's giving health inspector energy. 🩺

by default, check verifies the structural consistency and integrity of snapshots, trees and pack files. that's the baseline vibe check.

if you also wanna verify the integrity of the actual backed-up data, you gotta use the --read-data or --read-data-subset flags. those go deeper, fr fr.

and by default, check creates a new temporary cache directory to verify data. if you'd rather reuse the existing cache, use the --with-cache flag. iconic behaviour, honestly.


πŸ‘‘ 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 πŸ’…

  • -h, --help[=false] β€” help for check 🫢
  • -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)
  • --read-data[=false] β€” read all data blobs πŸ“–
  • --read-data-subset="" β€” read a subset of data packs, specified as 'n/t' for specific part, or either 'x%' or 'x.y%' or a size in bytes with suffixes k/K, m/M, g/G, t/T for a random subset 🎲
  • --tag=[] β€” only consider snapshots including tag[,tag,...] (can be specified multiple times)
  • --with-cache[=false] β€” use existing cache, only read uncached data from repository

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • --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. go forth and check your repo. it's giving responsible queen behaviour πŸ‘‘

generated by restic generate β€” Jan 2017 β€” from the restic backup(1) manual ✨ mwah, stay slay πŸ’–

πŸ“¦ where this page comes from