-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup-testnet.sh
executable file
·29 lines (22 loc) · 1.15 KB
/
backup-testnet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Backup, notarize and upload the testnet chain
# Uses the various scripts to perform the backup located in teh /scripts dir
user=fr1t2
BACKUP_PATH=/home/$user/qrl_bootstrap
BOOTSTRAP_LOGS=$BACKUP_PATH/qrl_bootstrap.logs
echo "----------------------------------------------" | tee -a $BOOTSTRAP_LOGS
echo "["`date -u`"] QRL.CO.IN Testnet Backup" |tee -a $BOOTSTRAP_LOGS
echo "Backup, Notarize and upload for Testnet" | tee -a $BOOTSTRAP_LOGS
echo "----------------------------------------------" | tee -a $BOOTSTRAP_LOGS
## Backup the chain state
echo "Backup Chain....." | tee -a $BOOTSTRAP_LOGS
sudo -H -u $user /home/$user/QRL.CO.IN/script/QRL_bootstrap/CreateQRLBootstrap_testnet.sh
echo "Backup Chain Complete!" | tee -a $BOOTSTRAP_LOGS
## Notarize the state checksum file
echo "Notarize....." | tee -a $BOOTSTRAP_LOGS
sudo -H -u $user /home/$user/QRL.CO.IN/script/notarize-testnet.sh
echo "Notarize Complete!" | tee -a $BOOTSTRAP_LOGS
## Load to the Cloud
echo "Upload to Cloud....." | tee -a $BOOTSTRAP_LOGS
sudo -H -u $user /home/$user/QRL.CO.IN/script/cloudUp-testnet.sh
echo "Upload to Cloud Complete!" | tee -a $BOOTSTRAP_LOGS