RESTIC-MOUNT(1)
β¨ NAME β¨
restic-mount β mount the repository, bestie π«Ά it's giving "your backups, but as a folder you can justβ¦ walk into" π
π¦ SYNOPSIS π¦
restic mount [flags] mountpoint
πΈ DESCRIPTION πΈ
okay so the mount command literally mounts the repository read-only via FUSE at the given mountpoint. That's it, that's the whole vibe. Read-only, no cap β you're browsing, not editing, so don't come for me if you can't write to it π
π Snapshot Directories π
so if the default folders that hold your snapshots aren't giving what you need, you can pass a time template with --time-template and path templates with --path-template. Customize away, icon π
example time template without colons:
--time-template "2006-01-02_15-04-05"
and here's the thing: you have to specify a sample format for exactly this timestamp:
Mon Jan 2 15:04:05 -0700 MST 2006
like, exactly that. For the details, please see the documentation for time.Format() at:
https://godoc.org/time#Time.Format
for path templates, these are the patterns you can use and they will get replaced:
%iβ short snapshot ID%Iβ long snapshot ID%uβ username%hβ hostname%tβ tags%Tβ timestamp as specified by--time-template
the default path templates are:
"ids/%i"
"snapshots/%T"
"hosts/%h/%T"
"tags/%t/%T"
π 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 π
not me memorizing theseβ¦ write them down bestie, your shell scripts will thank you π
β¨ OPTIONS β¨
--allow-other[=false]β let other users access the data in the mounted directory π-h,--help[=false]β help for mount π-H,--host=[]β only consider snapshots for this host (can be specified multiple times, use empty string to unset default value) (default:$RESTIC_HOST) π₯οΈ--no-default-permissions[=false]β for 'allow-other', ignore Unix permissions and allow users to read all snapshot files π¨--owner-root[=false]β use 'root' as the owner of files and dirs π--path=[]β only consider snapshots including this (absolute) path (can be specified multiple times, snapshots must include all specified paths) π--path-template=[]β set template for path names (can be specified multiple times) π--tag=[]β only consider snapshots includingtag[,tag,...](can be specified multiple times) π·οΈ--time-template="2006-01-02T15:04:05Z07:00"β set template to use for times β°
π OPTIONS INHERITED FROM PARENT COMMANDS π
these ones come from the parent command, they're the whole restic family's shared slay π
--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) π£οΈ
lowkey obsessed with -v β hit it twice max, that's the ceiling bestie, level 2 and done π₯
π«Ά SEE ALSO π«Ά
and that's the whole page, periodt π
this one was generated by restic generate, dated Jan 2017 β she's an icon, she's a legend, and she is the moment π
π¦ 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