From 666ad5d87dd31e6283f79d656822fc212fcd4e02 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 23 Sep 2023 12:19:18 +0100 Subject: [PATCH] Copy notes dumps to S3 --- cookbooks/planet/templates/default/planet-notes-dump.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/planet/templates/default/planet-notes-dump.erb b/cookbooks/planet/templates/default/planet-notes-dump.erb index 6113113d7..9f266b40a 100644 --- a/cookbooks/planet/templates/default/planet-notes-dump.erb +++ b/cookbooks/planet/templates/default/planet-notes-dump.erb @@ -55,4 +55,7 @@ rm -f planet-notes-latest.osn.bz2.md5 sed -e "s/${cur_planet_notes}.bz2/planet-notes-latest.osn.bz2/" "${cur_year}/${cur_planet_notes}.bz2.md5" > planet-notes-latest.osn.bz2.md5 +/opt/awscli/v2/current/bin/aws --profile osm-pds-upload s3 cp --storage-class INTELLIGENT_TIERING "${cur_year}/${cur_planet_notes}.bz2.md5" "s3://osm-planet-eu-central-1/notes/osn/${cur_year}/${cur_planet_notes}.bz2.md5" +/opt/awscli/v2/current/bin/aws --profile osm-pds-upload s3 cp --storage-class INTELLIGENT_TIERING "${cur_year}/${cur_planet_notes}.bz2" "s3://osm-planet-eu-central-1/notes/osn/${cur_year}/${cur_planet_notes}.bz2" + rm /tmp/planet-notes-dump.lock