Skip to content

Commit

Permalink
Copy notes dumps to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 23, 2023
1 parent c801310 commit 666ad5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookbooks/planet/templates/default/planet-notes-dump.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 666ad5d

Please sign in to comment.