diff --git a/nixos/hosts/backups-rpi4/scripts/rsync-data-vol.sh b/nixos/hosts/backups-rpi4/scripts/rsync-data-vol.sh index a55b11a3..1413f202 100644 --- a/nixos/hosts/backups-rpi4/scripts/rsync-data-vol.sh +++ b/nixos/hosts/backups-rpi4/scripts/rsync-data-vol.sh @@ -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: " diff --git a/nixos/hosts/backups-rpi4/scripts/rsync-media.sh b/nixos/hosts/backups-rpi4/scripts/rsync-media.sh index fd67e775..ad5a53f2 100644 --- a/nixos/hosts/backups-rpi4/scripts/rsync-media.sh +++ b/nixos/hosts/backups-rpi4/scripts/rsync-media.sh @@ -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: " diff --git a/nixos/hosts/backups-rpi4/scripts/rsync-sysctl.sh b/nixos/hosts/backups-rpi4/scripts/rsync-sysctl.sh index b2a3e5f6..8024e089 100644 --- a/nixos/hosts/backups-rpi4/scripts/rsync-sysctl.sh +++ b/nixos/hosts/backups-rpi4/scripts/rsync-sysctl.sh @@ -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...."