You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two ways to initialise the replication process: if you have imported
50
+
This function sets the replication service to use and determines from
50
51
.br
51
-
from a file that contains replication source information, then the
52
+
which date to apply updates. You must call this function at least once
52
53
.br
53
-
initialisation process can use this and set up replication from there.
54
+
to set up the replication process. It can safely be called again later
54
55
.br
55
-
Use the command \(cqosm2pgsql-replication \-\-osm\-file <filename>\(cq for this.
56
+
to change the replication servers or to roll back the update process and
57
+
.br
58
+
reapply updates.
56
59
.br
57
60
58
61
.br
59
-
If the file has no replication information or you don't have the initial
62
+
There are different methods available for initialisation. When no
63
+
.br
64
+
additional parameters are given, the data is initialised from the data
60
65
.br
61
-
import file anymore then replication can be set up according to
66
+
in the database. If the data was imported from a file with replication
62
67
.br
63
-
the data found in the database. It checks the planet_osm_way table for the
68
+
information and the properties table is available (for osm2pgsql >= 1.9)
64
69
.br
65
-
newest way in the database and then queries the OSM API when the way was
70
+
then the replication from the file is used. Otherwise the minutely
66
71
.br
67
-
created. The date is used as the start date for replication. In this mode
72
+
update service from openstreetmap.org is used as the default replication
68
73
.br
69
-
the minutely diffs from the OSM servers are used as a source. You can change
74
+
service. The start date is either taken from the database timestamp
75
+
.br
76
+
(for osm2pgsql >= 1.9) or determined from the newest way in the database
77
+
.br
78
+
by querying the OSM API about its creation date.
70
79
.br
71
-
this with the \(cq\-\-server\(cq parameter.
80
+
81
+
.br
82
+
The replication service can be changed with the \(cq\-\-server\(cq parameter.
83
+
.br
84
+
To use a different start date, add \(cq\-\-start\-at\(cq with an absolute
85
+
.br
86
+
ISO timestamp (e.g. 2007\-08\-20T12:21:53Z). When the program determines the
87
+
.br
88
+
start date from the database timestamp or way creation date, then it
89
+
.br
90
+
subtracts another 3 hours by default to ensure that all new changes are
91
+
.br
92
+
available. To change this rollback period, use \(cq\-\-start\-at\(cq with the
93
+
.br
94
+
number of minutes to rollback. This rollback mode can also be used to
95
+
.br
96
+
force initialisation to use the database date and ignore the date
97
+
.br
98
+
from the replication information in the file.
99
+
.br
100
+
101
+
.br
102
+
The initialisation process can also use replication information from
103
+
.br
104
+
an OSM file directly and ignore all other date information.
105
+
.br
106
+
Use the command \(cqosm2pgsql-replication \-\-osm\-file <filename>\(cq for this.
72
107
73
108
74
109
@@ -110,7 +145,11 @@ Get replication information from the given file.
110
145
111
146
.TP
112
147
\fB\-\-server\fR URL
113
-
Use replication server at the given URL (default: https://planet.openstreetmap.org/replication/minute)
148
+
Use replication server at the given URL
149
+
150
+
.TP
151
+
\fB\-\-start\-at\fR TIME
152
+
Time when to start replication. When an absolute timestamp (in ISO format) is given, it will be used. If a number is given, then replication starts the number of minutes before the known date of the database.
0 commit comments