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
0if the command was successful. π - Exit status is
1if there was any error. π - Exit status is
10if the repository does not exist. π - Exit status is
11if the repository is already locked. π - Exit status is
12if 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--blobor--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 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 is2`) π£οΈ
β¨ 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 β¨
restic(1)π
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
- 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