1git-annex-copy(1)           General Commands Manual          git-annex-copy(1)
2
3
4

NAME

6       git-annex-copy - copy content of files to/from another repository
7

SYNOPSIS

9       git annex copy [path ...] [--from=remote|--to=remote]
10

DESCRIPTION

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

OPTIONS

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 lo‐
32              cal 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       matching options
69              The git-annex-matching-options(1) can be used to specify what to
70              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       --batch-keys
86              This is like --batch but the lines read from stdin are parsed as
87              keys.
88
89       -z     Makes batch input be delimited by nulls  instead  of  the  usual
90              newlines.
91
92       --json Enable  JSON  output.  This is intended to be parsed by programs
93              that use git-annex. Each line of output is a JSON object.
94
95       --json-progress
96              Include progress objects in JSON output.
97
98       --json-error-messages
99              Messages that would normally be output to standard error are in‐
100              cluded in the json instead.
101
102       Also the git-annex-common-options(1) can be used.
103

SEE ALSO

105       git-annex(1)
106
107       git-annex-get(1)
108
109       git-annex-move(1)
110
111       git-annex-drop(1)
112

AUTHOR

114       Joey Hess <id@joeyh.name>
115
116                                                             git-annex-copy(1)
Impressum