1git-annex-copy(1) General Commands Manual git-annex-copy(1)
2
3
4
6 git-annex-copy - copy content of files to/from another repository
7
9 git annex copy [path ...] [--from=remote|--to=remote]
10
12 Copies the content of files from or to another remote.
13
14 With no parameters, operates on all annexed files in the current direc‐
15 tory. Paths of files or directories to operate on can be specified.
16
18 --from=remote
19
20 Copy the content of files from the specified remote to the local
21 repository.
22
23 Any files that are not available on the remote will be silently
24 skipped.
25
26 --to=remote
27 Copy the content of files from the local repository to the spec‐
28 ified remote.
29
30 --to=here
31 Copy the content of files from all reachable remotes to the
32 local repository.
33
34 --jobs=N -JN
35 Enables parallel transfers with up to the specified number of
36 jobs running at once. For example: -J10
37
38 Setting this to "cpus" will run one job per CPU core.
39
40 --auto Rather than copying all specified files, only copy those that
41 don't yet have the desired number of copies, or that are pre‐
42 ferred content of the destination repository. See git-annex-pre‐
43 ferred-content(1)
44
45 --fast When copying content to a remote, avoid a round trip to check if
46 the remote already has content. This can be faster, but might
47 skip copying content to the remote in some cases.
48
49 --all -A
50 Rather than specifying a filename or path to copy, this option
51 can be used to copy all available versions of all files.
52
53 This is the default behavior when running git-annex in a bare
54 repository.
55
56 --branch=ref
57 Operate on files in the specified branch or treeish.
58
59 --unused
60 Operate on files found by last run of git-annex unused.
61
62 --failed
63 Operate on files that have recently failed to be transferred.
64
65 --key=keyname
66 Use this option to copy a specified key.
67
68 file matching options
69 The git-annex-matching-options(1) can be used to specify files
70 to copy.
71
72 --batch
73 Enables batch mode, in which lines containing names of files to
74 copy are read from stdin.
75
76 As each specified file is processed, the usual progress output
77 is displayed. If a file's content does not need to be copied, or
78 it does not match specified matching options, or it is not an
79 annexed file, a blank line is output in response instead.
80
81 Since the usual output while copying a file is verbose and not
82 machine-parseable, you may want to use --json in combination
83 with --batch.
84
85 -z Makes the --batch input be delimited by nulls instead of the
86 usual newlines.
87
88 --json Enable JSON output. This is intended to be parsed by programs
89 that use git-annex. Each line of output is a JSON object.
90
91 --json-progress
92 Include progress objects in JSON output.
93
94 --json-error-messages
95 Messages that would normally be output to standard error are
96 included in the json instead.
97
99 git-annex(1)
100
101 git-annex-get(1)
102
103 git-annex-move(1)
104
105 git-annex-drop(1)
106
108 Joey Hess <id@joeyh.name>
109
110 git-annex-copy(1)