summaryrefslogtreecommitdiff
path: root/doc/git-annex-mirror.mdwn
blob: ddb46e6b7cc3f5f99476ebba15a534f75f46925b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# NAME

git-annex mirror - mirror content of files to/from another repository

# SYNOPSIS

git annex mirror `[path ...] [--to=remote|--from=remote]`

# DESCRIPTION

This causes a destination repository to mirror a source repository.

Each specified file in the source repository is mirrored to the destination
repository. If a file's content is present in the source repository, it is
copied to the destination repository. If a file's content is not present in
the source repository, it will be dropped from the destination repository
when the numcopies setting allows.
  
Note that mirror does not sync the git repository, but only the file
contents.

# OPTIONS

* `--to=remote`

  Use the local repository as the source repository, and mirror its contents
  to the remote.

* `--from=remote`

  Use the remote as the source repository, and mirror its contents to the local
  repository.

* `--all`

  Mirror all objects stored in the git annex, not only objects used by
  currently existing files. 
  
  However, this bypasses checking the .gitattributes annex.numcopies
  setting when dropping files.

* file matching options

  The [[git-annex-matching-options]](1)
  can be used to specify files to mirror.

# SEE ALSO

[[git-annex]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.