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 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 πŸ”‘
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 including tag[,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 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) πŸ—£οΈ
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