1git-annex-rekey(1) General Commands Manual git-annex-rekey(1)
2
3
4
6 git-annex-rekey - change keys used for files
7
9 git annex rekey [file key ...]
10
12 This plumbing-level command is similar to migrate, but you specify both
13 the file, and the new key to use for it.
14
15 Multiple pairs of file and key can be given in a single command line.
16
17 Note that, unlike git-annex migrate, this does not copy over metadata,
18 urls, and other such information from the old to the new key
19
21 --force
22
23 Allow rekeying of even files whose content is not currently
24 available. Use with caution.
25
26 --batch
27 Enables batch mode, in which lines are read from stdin. Each
28 line should contain the file, and the new key to use for that
29 file, separated by a single space.
30
31 -z Makes the --batch input be delimited by nulls instead of the
32 usual newlines.
33
34 --json Enable JSON output. This is intended to be parsed by programs
35 that use git-annex. Each line of output is a JSON object.
36
37 --json-error-messages
38 Messages that would normally be output to standard error are in‐
39 cluded in the JSON instead.
40
41 Also the git-annex-common-options(1) can be used.
42
44 git-annex(1)
45
46 git-annex-migrate(1)
47
49 Joey Hess <id@joeyh.name>
50
51 git-annex-rekey(1)