Skip to content

Commit ba04e65

Browse files
authored
Update backup-vultr-snapshot.sh
1 parent 6774b4d commit ba04e65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backup-vultr-snapshot.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#Variables
1313
#Put your API key here
1414
api_key="API_KEY_HERE"
15-
#Vultr APIP
15+
#Vultr API
1616
API="https://api.vultr.com/v1"
1717
#We keep the total number of snapshots under 11 based on two virtual private servers (VPS)
1818
snapshot_limit="8"
@@ -42,8 +42,8 @@ done
4242
for vps in $VPS_names; do
4343
VPS_label=$(curl -s "$API/server/list?api_key=$api_key&SUBID=$vps" | jq -r '.label')
4444
if curl -s "$API/snapshot/create?api_key=$api_key" --data SUBID=$vps --data description=$VPS_label | grep -q 'SNAPSHOTID'; then
45-
logger "[OK - Backup] Creating a snapshot for VPS on Vultr: '$VPS_label' with SUBID: '$vps'"
45+
logger "[OK - Backup] Creating Vultr snapshot for VPS: '$VPS_label' with SUBID: '$vps'"
4646
else
47-
logger "[FAILED - Backup] Failed to create snapshot for VPS on Vultr: '$VPS_label' with SUBID: '$vps'"
47+
logger "[FAILED - Backup] Failed to create Vultr snapshot for VPS: '$VPS_label' with SUBID: '$vps'"
4848
fi
4949
done

0 commit comments

Comments
 (0)