summaryrefslogtreecommitdiff
path: root/mirror.1
blob: 30b00617aeb1ce7b270a2cea378920b665041827 (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
.TH mirror 1 "2024-01-01"
.SH NAME
mirror \- copies remote git repositories in bulk
.SH SYNOPSIS
.B mirror
.RB [ -n ]
.RI [ repositories ]
.br
.B mirror -v
.SH DESCRIPTION
This script will read
.I repositories
file for paths or addresses to git repositories and clone them in a bare mirror mode or update existing mirrors as
necessary. If not provided
.I repositories
will default to
.B repositories.mirror
in the current working directory.
.P
With
.B -n
option the script will only print actions it would perform and not attempt any updates.
.P
With
.B -v
option the script will print version information to standard output and terminate immediately after.
.SH EXIT STATUS
Exit status is zero if all repositories in the list have been mirrored successfully or if
.B -v
option was used. If one or more mirrors fail or an unknown command-line option is provided, a non-zero status is
returned.
.SH SEE ALSO
.BR mirror.service (8),
.BR mirror (5),
.BR git (1)