Skip to content

Commit

Permalink
planet: also sync to s3 changeset state config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Oct 24, 2023
1 parent d1b6d1b commit 8e2b5b8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,11 @@ class Replicator

if @config["s3_dir"]
s3_file = s3_stem + ".osm.gz"
s3_state_config_file = @config["s3_dir"] + "/state.yaml"
s3_state_file = s3_stem + ".state.txt"

system("/opt/awscli/v2/current/bin/aws", "--profile=osm-pds-upload", "s3", "cp", "--storage-class=INTELLIGENT_TIERING", "--no-progress", data_file, s3_file)
system("/opt/awscli/v2/current/bin/aws", "--profile=osm-pds-upload", "s3", "cp", "--storage-class=INTELLIGENT_TIERING", "--no-progress", @config["state_file"], s3_state_config_file)
system("/opt/awscli/v2/current/bin/aws", "--profile=osm-pds-upload", "s3", "cp", "--storage-class=INTELLIGENT_TIERING", "--no-progress", data_state_file, s3_state_file)
end
end
Expand Down

0 comments on commit 8e2b5b8

Please sign in to comment.