Update backup.sh
This commit is contained in:
parent
d26eeefb7e
commit
9f40e6ca51
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PING_URL=$1
|
||||
|
||||
set -ex
|
||||
|
||||
cd /root
|
||||
|
@ -18,7 +20,7 @@ sleep 30
|
|||
|
||||
docker exec mc mc-send-to-console title $TARGET title '\"\\u00A7cRestarting...\"'
|
||||
|
||||
curl -m 10 --retry 5 https://hc-ping.com/808c9be1-26d3-425b-a056-8c324d9e39d0/start
|
||||
curl -m 10 --retry 5 "$PING_URL/start"
|
||||
|
||||
docker stop mc
|
||||
|
||||
|
@ -30,4 +32,4 @@ docker start mc
|
|||
./rclone copy $OUTPUT_FILE backblazebackups:akp-backups/lgbtq-mc
|
||||
rm $OUTPUT_FILE
|
||||
|
||||
curl -m 10 --retry 5 https://hc-ping.com/808c9be1-26d3-425b-a056-8c324d9e39d0
|
||||
curl -m 10 --retry 5 $PING_URL
|
||||
|
|
Reference in a new issue