This commit is contained in:
albert 2024-05-21 17:28:39 +09:00
parent 9c5152771c
commit 09ae03167e
Signed by: albert
GPG key ID: 3895DD267CA11BA9
3 changed files with 3 additions and 3 deletions

View file

@ -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: "

View file

@ -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: "

View file

@ -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...."