RESTIC-DIFF(1)
π restic-diff(1) β the "what even changed between these two snapshots" page π
okay bestie, welcome to the restic backup(1) manual family (yes that's the manual name, don't ask, it's giving shared-household energy π ). This page is all about restic diff, and honestly? She's a baddie. Let's get into it.
β¨ NAME β¨
restic-diff β show differences between two snapshots π¦
πΈ SYNOPSIS πΈ
restic diff [flags] snapshotID snapshotID
Two snapshot IDs. That's it. That's the whole vibe. π
π DESCRIPTION π
So the diff command shows you the differences going from the first snapshot to the second one. Direction matters, babes, she's not symmetric. β¬
οΈβ‘οΈ
The first characters in each line tell you what happened to a particular file or directory:
+β the item was added β¨-β the item was removed πUβ the metadata (access mode, timestamps, ...) for the item was updated πMβ the file's content was modified π₯Tβ the type was changed, e.g. a file was made a symlink π¦?β bitrot detected: the file's content has changed but all metadata is the same π
ngl, metadata comparison will likely not work if a backup was created using the--ignore-inodeor--ignore-ctimeoption. Just so you know. no cap. π
And if you only wanna compare files in specific subfolders? Iconic behavior, you can use the snapshotID:subfolder syntax, where subfolder is a path within the snapshot tree as shown by restic ls. Subfolder girlies stay winning. π
π₯ EXIT STATUS π₯
- 0 β the command was successful, slay π
- 1 β there was any error π
- 10 β the repository does not exist
- 11 β the repository is already locked π
- 12 β the password is incorrect π
π OPTIONS π
-h,--help[=false]β help fordiff--metadata[=false]β print changes in metadata π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the family heirlooms, passed down from the parent command, and they are all iconic in their own way:
--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 inside the restic backup(1) manual. go forth and diff your little heart out. πβ¨ππ¦πΈπ
π«Ά
π¦ 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