]> git.openstreetmap.org Git - chef.git/commitdiff
Send osmdbt log files to S3
authorTom Hughes <tom@compton.nu>
Tue, 10 Oct 2023 16:21:27 +0000 (17:21 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 10 Oct 2023 16:21:27 +0000 (17:21 +0100)
cookbooks/planet/files/default/replication-bin/replicate-minute

index 943cfa6a3b6a850845e4b3cf6a8bcc38c259b745..5e39bec7ae8b7d408d082f813614e33ea472dca0 100755 (executable)
@@ -6,6 +6,9 @@ cd /etc/replication
 
 osmdbt-catchup --quiet
 osmdbt-get-log --quiet
+
+/opt/awscli/v2/current/bin/aws --profile=osm-osmdbt-state-upload s3 sync --storage-class=INTELLIGENT_TIERING --no-progress --exclude='*' --include='osm-repl-*.log' /var/lib/replication/minute s3://openstreetmap-osmdbt-state
+
 osmdbt-catchup --quiet
 osmdbt-create-diff --quiet --with-comment --max-changes=50000