RESTIC-FIND(1)

πŸ’– restic-find β€” Find a file, a directory or restic IDs πŸ’–

okay bestie, welcome to the restic backup(1) manual, page for restic-find. grab a snack, this one's fun. πŸ“


✨ NAME ✨

restic-find β€” Find a file, a directory or restic IDs πŸ¦‹


✨ SYNOPSIS ✨

restic find [flags] PATTERN...

✨ DESCRIPTION ✨

so the find command goes hunting for files or directories inside the snapshots chillin' in your repository. and that's not all β€” it can also be used to search for restic blobs, trees or pack files, which is your go-to move for troubleshooting when something's acting up. πŸ”

the default sort option for the snapshots is youngest to oldest. if you want the output flipped, oldest to youngest, just say --reverse and it's done. πŸ’…


✨ 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 ✨

  • --blob[=false] β€” the pattern is a blob-ID 🫧
  • -h, --help[=false] β€” help for find πŸ†˜
  • -H, --host=[] β€” only consider snapshots for this host (can be specified multiple times, use empty string to unset default value) (default: $RESTIC_HOST) πŸ–₯️
  • --human-readable[=false] β€” print sizes in human readable format 🌸
  • -i, --ignore-case[=false] β€” ignore case for pattern πŸ”€
  • -l, --long[=false] β€” use a long listing format showing size and mode πŸ“‹
  • -N, --newest="" β€” newest modification date/time ⏰
  • -O, --oldest="" β€” oldest modification date/time πŸ•°οΈ
  • --pack[=false] β€” the pattern is a pack-ID πŸ“¦
  • --path=[] β€” only consider snapshots including this (absolute) path (can be specified multiple times, snapshots must include all specified paths) πŸ›€οΈ
  • -R, --reverse[=false] β€” reverse sort order, oldest to newest πŸ”„
  • --show-pack-id[=false] β€” display the pack-ID the blobs belong to (with --blob or --tree) πŸ‘€
  • -s, --snapshot=[] β€” snapshot id to search in (can be given multiple times) πŸ“Έ
  • --tag=[] β€” only consider snapshots including tag[,tag,...] (can be specified multiple times) 🏷️
  • --tree[=false] β€” the pattern is a tree-ID 🌳

🌈 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`) πŸ—£οΈ

✨ EXAMPLE ✨

like, just look at these, they ate fr fr:

restic find config.json
restic find --json "*.yml" "*.json"
restic find --json --blob 420f620f b46ebe8a ddd38656
restic find --show-pack-id --blob 420f620f
restic find --tree 577c2bc9 f81f2e22 a62827a9
restic find --pack 025c1d06

✨ SEE ALSO ✨


lowkey the whole vibe: go find ur stuff, bestie. no cap. ✨

generated by restic generate 🌸 Jan 2017 🌸 and yes, it lives in the restic backup(1) manual β€” periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from