Updates
This commit is contained in:
parent
9c5152771c
commit
09ae03167e
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ fi
|
|||
|
||||
# If an old backup is still running, don't continue
|
||||
count=$(ps aux | grep $BACKUP_NAME | grep -v grep | wc -l)
|
||||
if [[ $count -ge 2 ]] ; then
|
||||
if [[ $count -ge 4 ]] ; then
|
||||
echo -e "$BACKUP_NAME rsync still running. Exiting...."
|
||||
|
||||
echo "Output: "
|
||||
|
|
|
@ -28,7 +28,7 @@ fi
|
|||
|
||||
# If an old backup is still running, don't continue
|
||||
count=$(ps aux | grep $BACKUP_NAME | grep -v grep | wc -l)
|
||||
if [[ $count -ge 2 ]] ; then
|
||||
if [[ $count -ge 4 ]] ; then
|
||||
echo -e "$BACKUP_NAME rsync still running. Exiting...."
|
||||
|
||||
echo "Output: "
|
||||
|
|
|
@ -7,7 +7,7 @@ curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json"
|
|||
|
||||
# If an old backup is still running, don't continue
|
||||
count=$(ps aux | grep $BACKUP_NAME | grep -v grep | wc -l)
|
||||
if [[ $count -ge 2 ]] ; then
|
||||
if [[ $count -ge 4 ]] ; then
|
||||
# There will always be at least 1: the current cronjob that's running
|
||||
echo -e "$BACKUP_NAME rsync still running. Exiting...."
|
||||
|
||||
|
|
Loading…
Reference in a new issue