File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
cookbooks/planet/files/default/replication-bin Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,13 @@ osmdbt-get-log --quiet
9
9
osmdbt-catchup --quiet
10
10
osmdbt-create-diff --quiet --with-comment --max-changes=50000
11
11
12
- cd /store/planet/replication/minute
13
-
14
- . state.txt
12
+ . /store/planet/replication/minute/state.txt
15
13
16
14
sequencePart1=$(( $sequenceNumber / 1000000 % 1000 ))
17
15
sequencePart2=$(( $sequenceNumber / 1000 % 1000 ))
18
16
sequencePart3=$(( $sequenceNumber % 1000 ))
19
17
diffPath=$( printf " %03d/%03d/%03d" $sequencePart1 $sequencePart2 $sequencePart3 )
20
18
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"
19
+ /opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING " /store/planet/replication/minute/ ${diffPath} .osc.gz" " s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath} .osc.gz"
20
+ /opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING " /store/planet/replication/minute/ ${diffPath} .state.txt" " s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath} .state.txt"
21
+ /opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING " /store/planet/replication/minute/ state.txt" " s3://osm-planet-eu-central-1/planet/replication/minute/state.txt"
You can’t perform that action at this time.
0 commit comments