gdp / apps / log-mirror.1 @ master
History | View | Annotate | Download (1.61 KB)
1 |
.Dd September 18, 2015 |
---|---|
2 |
.Dt LOG-MIRROR 1 |
3 |
.Os Swarm-GDP |
4 |
.Sh NAME |
5 |
.Nm log-mirror |
6 |
.Nd mirror one GDP log to another |
7 |
.Sh SYNOPSIS |
8 |
.Nm log-mirror |
9 |
.Op Fl D Ar debug-spec |
10 |
.Op Fl G Ar router-ip |
11 |
.Ar source-log |
12 |
.Ar target-log |
13 |
.Sh DESCRIPTION |
14 |
.Nm |
15 |
mirrors one GDP log to another. |
16 |
It can be used for dumb replication. |
17 |
.Pp |
18 |
When it starts up it begins reading data from the source log |
19 |
starting after the last record in the target log. |
20 |
In other words, |
21 |
.Nm |
22 |
will |
23 |
.Dq "catch up" |
24 |
with records that that have been previously written to the source |
25 |
but not copied into the target. |
26 |
.Sh OPTIONS |
27 |
.Bl -tag |
28 |
.It Fl D Ar debug-spec |
29 |
Turns on debugging flags using the libep-style format. |
30 |
Useful only with the code in hand. |
31 |
.It Fl G Ar router-ip |
32 |
Contact the given IP address (which may be a DNS name) |
33 |
to get a connection to the GDP routing layer. |
34 |
This will be replaced by automatic discovery |
35 |
(for example, using Zeroconf) |
36 |
soon. |
37 |
The address may have an optional port number after a colon. |
38 |
If this is not specified, |
39 |
the names listed in the |
40 |
.Va swarm.gdp.routers |
41 |
runtime administrative parameter |
42 |
are searched. |
43 |
.El |
44 |
.Sh EXIT STATUS |
45 |
.Nm |
46 |
should not exit except on error or manual termination. |
47 |
.Bl -tag |
48 |
.It Li EX_UNAVAILABLE |
49 |
There was some failure during startup or execution. |
50 |
.It Li EX_USAGE |
51 |
Command line parameters are incorrect. |
52 |
.El |
53 |
.\".Sh ADMINISTRATIVE PARAMETERS |
54 |
.\".Sh ENVIRONMENT |
55 |
.\".Sh FILES |
56 |
.\".Sh SEE ALSO |
57 |
.\".Xr gdp 7 , |
58 |
.\".Xr gdplogd 8 |
59 |
.\".Sh EXAMPLES |
60 |
.Sh BUGS |
61 |
There is no check to make sure that the two logs have previously |
62 |
had the same data. |
63 |
For example, you could mirror A into T and later mirror B into T |
64 |
or even T into A without any error. |
65 |
This is unlikely to be fixed. |