From ac7802f158e639977f95daec0f049fecca0fd4ec Mon Sep 17 00:00:00 2001 From: Leopere Date: Tue, 6 Nov 2018 15:32:38 -0500 Subject: [PATCH] Adding second checkpoint function --- chainquery/quick-bootstrap.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/chainquery/quick-bootstrap.sh b/chainquery/quick-bootstrap.sh index 85554d0..d0f8c6c 100755 --- a/chainquery/quick-bootstrap.sh +++ b/chainquery/quick-bootstrap.sh @@ -63,11 +63,17 @@ case $1 in # rm -Rf ./data # rm -f ./chainquery.zip ;; - upload-latest-checkpoint-data ) - ## This is a function just to ensure that we keep checkpoint data up to date. + compress-latest-checkpoint-data ) + ## This is not intended for public use. docker-compose stop chainquery 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 rm s3://chainquery-data/chainquery-data.zip aws s3 mv s3://chainquery-data/chainquery-data.new s3://chainquery-data/chainquery-data.zip