From 09ae03167e767a18ff7a8b3e9f2aee516c1462dc Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 21 May 2024 17:28:39 +0900 Subject: [PATCH] Updates --- nixos/hosts/backups-rpi4/scripts/rsync-data-vol.sh | 2 +- nixos/hosts/backups-rpi4/scripts/rsync-media.sh | 2 +- nixos/hosts/backups-rpi4/scripts/rsync-sysctl.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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...."