File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
files/default/replication-bin Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,16 @@ osmdbt-catchup --quiet
8
8
osmdbt-get-log --quiet
9
9
osmdbt-catchup --quiet
10
10
osmdbt-create-diff --quiet --with-comment --max-changes=50000
11
+
12
+ cd /store/planet/replication/minute
13
+
14
+ . state.txt
15
+
16
+ sequencePart1=$(( $sequenceNumber / 1000000 % 1000 ))
17
+ sequencePart2=$(( $sequenceNumber / 1000 % 1000 ))
18
+ sequencePart3=$(( $sequenceNumber % 1000 ))
19
+ diffPath=$( printf " %03d/%03d/%03d" $sequencePart1 $sequencePart2 $sequencePart3 )
20
+
21
+ /opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING " ${diffPath} .osc.gz" " s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath} .osc.gz"
22
+ /opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING " ${diffPath} .state.txt" " s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath} .state.txt"
23
+ /opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING " state.txt" " s3://osm-planet-eu-central-1/planet/replication/minute/state.txt"
Original file line number Diff line number Diff line change 269
269
working_directory "/etc/replication"
270
270
exec_start "/usr/local/bin/replicate-minute"
271
271
sandbox :enable_network => true
272
+ protect_home "tmpfs"
273
+ bind_paths "/home/planet"
272
274
read_write_paths [
273
275
"/run/replication" ,
274
276
"/store" ,
You can’t perform that action at this time.
0 commit comments