adding update-bootstrap

This commit is contained in:
Leopere 2018-11-06 15:11:20 -05:00
parent a4882253fe
commit 97f5fcfd13
No known key found for this signature in database
GPG key ID: 64476C903E477CCB

View file

@ -63,6 +63,14 @@ case $1 in
# rm -Rf ./data
# rm -f ./chainquery.zip
;;
update-bootstrap )
## This is a function just to ensure that we keep checkpoint data up to date.
docker-compose stop chainquery
docker-compose stop mysql
zip -r chainquery-data.zip data
aws s3 cp ./chainquery-data.zip s3://chainquery-data/chainquery-data.new
aws s3 rm s3://chainquery-data/chainquery-data.zip
aws s3 mv s3://chainquery-data/chainquery-data.new s3://chainquery-data/chainquery-data.zip
* )
echo "=================================================="
echo "You look like you need usage examples let me help."