TARSNAP-KEYMGMT(1)
π
TARSNAP-KEYMGMT(1) β the girlies' guide to tarsnap-keymgmt
okay so this is a General Commands Manual page, bestie β tarsnap-keymgmt lives in section 1, and it's here to hand you a subset of a tarsnap(1) key file. like, a little baby key that only does the things you said it could do. obsessed. π
β¨ NAME β¨
tarsnap-keymgmt β generate subsets of tarsnap(1) key files
π¦ SYNOPSIS π¦
tarsnap-keymgmt --outkeyfile new-key-file [-r] [-w] [-d] [--nuke]
[--passphrased] [--passphrase-mem maxmem]
[--passphrase-time maxtime] key-file ...
tarsnap-keymgmt --print-key-id key-file
tarsnap-keymgmt --print-key-permissions key-file
tarsnap-keymgmt --version
π DESCRIPTION π
okay so picture this: tarsnap-keymgmt reads the key files you hand it and writes a new key file β the one you named with --outkeyfile new-key-file β and that new file contains only the keys you actually need for the operations you picked:
-rβ list and extract archives-wβ write archives-dβ delete archives--nuke
and like, one thing to know: -d implies -r, fr fr, because you literally cannot delete an individual archive without being able to read it. no cap. meanwhile a key file generated with --nuke can be used to delete all the archives stored, but not individual archives. different vibe entirely. π
πΈ which permissions do you need for which mode πΈ
this is the part where you screenshot and send it to the group chat, bestie β here's which permissions are required for various tarsnap(1) command modes:
--recoverβ requires either (1)-d(archive deleting), (2)-w(archive creating), or (3)--nukekeys.--fsckβ requires either (1) both-w(archive writing) and-r(archive reading) keys, or (2)-d(archive deleting) keys.--fsck-pruneβ requires-d(archive deleting) keys, since it needs to be able to delete corrupted archives.
π§ the passphrase options (lock it up, queen) π§
--passphrasedβ if you specify this, the user will be prompted to enter a passphrase (twice, yes twice, don't @ me) to be used to encrypt the key file. π₯--passphrase-mem maxmemβ if specified, a maximum of maxmem bytes of RAM will be used in the scrypt key derivation function to encrypt the key file. and honestly? it may be necessary to set this option if a key file is being created on a system with far more RAM than the system on which the key file will be used. imagine your beefy server key not sliding into your lil laptop. tragic. π--passphrase-time maxtimeβ if specified, a maximum of approximately maxtime seconds will be used in the scrypt key derivation function to encrypt the key file. β³
β οΈ okay heads up: if none of-w,-r,-d, or--nukeare specified, a key file will be produced which does not contain any keys. like... an empty vibe. this is probably not very useful. π
π the print-y options π
--print-key-id key-fileβ displays the 64-bit integer corresponding to the key's machine number. could be useful for scripts or GUIs which manage a user's Tarsnap account, but ngl it's not likely to be helpful for command-line use.--print-key-permissions key-fileβ displays the permissions which the key possesses. periodt.--versionβ prints the version number oftarsnap-keymgmt, then exits. that's it, that's the whole thing. π
π sign-off π
this icon was served to you fresh off the Debian press, dated March 20, 2025 β go forth and make only the keys you actually need, bestie. π«Άβ¨π
TARSNAP-KEYMGMT(1) β General Commands Manual β slay responsibly π
π¦ where this page comes from
- arch rolling: tarsnap 1.0.41-1 Β· custom
- Copyright 2008-2025 Tarsnap Backup Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms