Add host scripts
This commit is contained in:
12
host/start_backup.sh
Normal file
12
host/start_backup.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
value=$(<backups_amount)
|
||||
newvalue=$((value+1))
|
||||
if [[ $newvalue -lt 1 ]]
|
||||
then
|
||||
newvalue=1
|
||||
fi
|
||||
echo "Amount of running backups: $newvalue"
|
||||
echo $newvalue > backups_amount
|
||||
qm start 103
|
||||
qm list | grep 103 | awk '{print $3}'
|
||||
Reference in New Issue
Block a user