git-annex-rekey(1)

πŸ“¦
version 10.20261026 Β· 3 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ git-annex-rekey(1) ✨

okay bestie, welcome to the General Commands Manual page for git-annex-rekey πŸ’– this is the one where you swap out the key a file is using, and honestly? it's giving glow-up for your annex.


🌸 NAME 🌸

git-annex-rekey β€” change keys used for files πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

git annex rekey [file key ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so. this is a plumbing-level command, which basically means it's the low-level wiring, not the pretty front door. it's similar to migrate, but here's the twist: you get to specify both the file and the brand new key you want it to use. main character energy, honestly πŸ‘‘

you can hand it multiple pairs of file and key in one single command line, no need to run it a million times. slay 🫢

⚠️ but listen β€” and this is important, no cap β€” unlike git-annex migrate, this does not copy over metadata, urls, and other such information from the old key to the new key. the old key's extra info does not come with. it stays behind. periodt πŸ’€

πŸ’– OPTIONS πŸ’–

  • --force β€” allow rekeying of even files whose content is not currently available. Use with caution. 🚨 (like, genuinely, be careful bestie β€” this is the "yes I know what I'm doing" button)
  • --batch β€” turns on batch mode, where lines get read from stdin. each line should contain the file, and the new key to use for that file, separated by a single space. feed it a whole stream of them, go off 🌈
  • -z β€” makes the --batch input be delimited by nulls instead of the usual newlines. for when your filenames are feral and contain newlines πŸ™ˆ
  • --json β€” enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. πŸ€– (machines love this one)
  • --json-error-messages β€” messages that would normally be output to standard error are included in the JSON instead. so all the sad stuff gets folded into the json, cute ✨

Also the git-annex-common-options(1) can be used. don't forget about the classics πŸ’œ


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess <id@joeyh.name> β€” an absolute legend, fr fr 🫑


and that's the whole vibe check, bestie πŸŽ€ this was git-annex-rekey(1) from the General Commands Manual, and yes, the footer really does just say git-annex-rekey(1) again β€” the manpage said it twice because it knew it ate πŸ’… go rekey something iconic, i believe in you 🌟