RESTIC-UNLOCK(1)

πŸ’– restic-unlock(1) πŸ’–

okay bestie, welcome to the restic-unlock page β€” part of the restic manual, and honestly? one of the most lowkey iconic little commands in the whole toolkit. no cap.


✨ NAME ✨

restic-unlock β€” Remove locks other processes created


πŸ¦‹ SYNOPSIS πŸ¦‹

restic unlock [flags]

🌸 DESCRIPTION 🌸

So basically, the unlock command removes stale locks that have been created by other restic processes. that's it. that's the whole job. and it ATE. πŸ’…

Removing locks works even with repositories served in append-only mode from restic's rest-server. like, yes, even then. the vibes are immaculate.


πŸ‘‘ EXIT STATUS πŸ‘‘

  • Exit status is 0 if the command was successful. slay, we love a clean exit. βœ…
  • Exit status is 1 if there was any error. 😭

⭐ OPTIONS ⭐

  • -h, --help[=false] β€” help for unlock. your little emergency 411 line, fr fr.
  • --remove-all[=false] β€” remove all locks, even non-stale ones. bestie this one is spicy β€” it does NOT discriminate between stale and fresh, so know what you're doing before you hit it. πŸ”₯

πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

these are the flags that come down from the big parent command, i.e. the main character energy that gets passed to every restic subcommand. 🫢

  • --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). ⚠️ the name literally says insecure, so like… noted.
  • --insecure-tls[=false] β€” skip TLS certificate verification when connecting to the repository (insecure). also flagged insecure. the audacity of this one honestly πŸ™ˆ
  • --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)

🌈 SEE ALSO 🌈


and that's the whole page bestie, we literally covered every single line, no skips, no shortcuts, iykyk. πŸ’–βœ¨

generated by restic generate 🌸 Jan 2017 πŸŽ€ β€” yeah this page has been around since forever and it's still serving looks. bye bestie, go unlock something! πŸ¦‹πŸ’…

πŸ“¦ where this page comes from