No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
scripts/backup/backup
|
@ -116,7 +116,11 @@ if [[ $BITCOIN_NETWORK == "regtest" ]]; then |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo "Uploading backup..." |
|
|
echo "Uploading backup..." |
|
|
curl --socks5 localhost:9150 -F "file=@/${BACKUP_FILE}" "${BACKUP_API_URL}/${backup_id}" |
|
|
if curl --socks5 localhost:9150 -F "file=@/${BACKUP_FILE}" "${BACKUP_API_URL}/${backup_id}"; then |
|
|
|
|
|
status="===== Backup successful =====" |
|
|
|
|
|
else |
|
|
|
|
|
status="======= Backup failed =======" |
|
|
|
|
|
fi |
|
|
echo |
|
|
echo |
|
|
|
|
|
|
|
|
rm -rf "${BACKUP_ROOT}" |
|
|
rm -rf "${BACKUP_ROOT}" |
|
@ -126,7 +130,7 @@ echo "Removing lock..." |
|
|
rm -f "${UMBREL_ROOT}/statuses/backup-in-progress" |
|
|
rm -f "${UMBREL_ROOT}/statuses/backup-in-progress" |
|
|
|
|
|
|
|
|
echo "=============================" |
|
|
echo "=============================" |
|
|
echo "===== Backup successful =====" |
|
|
echo "${status}" |
|
|
echo "=============================" |
|
|
echo "=============================" |
|
|
|
|
|
|
|
|
exit 0 |
|
|
exit 0 |
|
|