Adding second checkpoint function

This commit is contained in:
Leopere 2018-11-06 15:32:38 -05:00
parent bf4d5c7d84
commit ac7802f158
No known key found for this signature in database
GPG key ID: 64476C903E477CCB

View file

@ -63,11 +63,17 @@ case $1 in
# rm -Rf ./data # rm -Rf ./data
# rm -f ./chainquery.zip # rm -f ./chainquery.zip
;; ;;
upload-latest-checkpoint-data ) compress-latest-checkpoint-data )
## This is a function just to ensure that we keep checkpoint data up to date. ## This is not intended for public use.
docker-compose stop chainquery docker-compose stop chainquery
docker-compose stop mysql docker-compose stop mysql
zip -r chainquery-data.zip data sudo zip -r chainquery-data.zip data
docker-compose up -d mysql
sleep 30
docker-compose up -d chainquery
;;
upload-latest-checkpoint-data )
## This is not intended for public use.
aws s3 cp ./chainquery-data.zip s3://chainquery-data/chainquery-data.new aws s3 cp ./chainquery-data.zip s3://chainquery-data/chainquery-data.new
aws s3 rm s3://chainquery-data/chainquery-data.zip aws s3 rm s3://chainquery-data/chainquery-data.zip
aws s3 mv s3://chainquery-data/chainquery-data.new s3://chainquery-data/chainquery-data.zip aws s3 mv s3://chainquery-data/chainquery-data.new s3://chainquery-data/chainquery-data.zip