File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212# Variables
1313# Put your API key here
1414api_key=" API_KEY_HERE"
15- # Vultr APIP
15+ # Vultr API
1616API=" https://api.vultr.com/v1"
1717# We keep the total number of snapshots under 11 based on two virtual private servers (VPS)
1818snapshot_limit=" 8"
4242for 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
4949done
You can’t perform that action at this time.
0 commit comments