RESTIC-RECOVER(1)

πŸ’– restic-recover(1) β€” bestie edition πŸ’–

okay so this page lives in the restic backup(1) manual (yes the header says backup, we don't question the header, we love the header) and it's all about restic recover. grab a snack, we're recovering data πŸ“


✨ NAME ✨

restic-recover β€” Recover data from the repository not referenced by snapshots


πŸ¦‹ SYNOPSIS πŸ¦‹

restic recover [flags]

🌸 DESCRIPTION 🌸

okay so picture this: recover builds a brand new snapshot out of all the directories it can find in the raw data of the repository β€” the ones that are not referenced in an existing snapshot. it's giving "found footage" energy but make it backups πŸ’…

when do you need her? say a snapshot got removed by accident with forget. tragic. devastating. but recover is right there, hand out, ready to pull those unreferenced directories back into a shiny new snapshot. main character rescue arc, no cap πŸ‘‘


πŸ’€ EXIT STATUS πŸ’€

  • Exit status is 0 β€” the command was successful, we ate, we slayed ✨
  • Exit status is 1 β€” there was any error 😭
  • Exit status is 10 β€” the repository does not exist πŸ™ˆ
  • Exit status is 11 β€” the repository is already locked πŸ”’
  • Exit status is 12 β€” the password is incorrect πŸ’€

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help[=false] β€” help for recover. she's literally just here to explain herself 🫢

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these are the family heirlooms, passed down from the parent command πŸ’œ

  • --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)
heads up bestie: the --insecure-no-password and --insecure-tls flags are literally labeled insecure in the source, and `--verbose=n`` above has a lil backtick situation going on. i'm not fixing it, i'm just reporting it, that's what the manpage says fr fr πŸ™ˆ

🌈 SEE ALSO 🌈


generated by restic generate, dated Jan 2017, and it belongs to the restic backup(1) manual family. that's the whole page, you're welcome, go recover your data and slay πŸ’…βœ¨πŸ‘‘
πŸ“¦ where this page comes from