From: Vincent Vanwaelscappel Date: Fri, 21 Jul 2023 13:21:24 +0000 (+0200) Subject: wip #6145 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2a867bfe8542fb32bc19955d563d16b3e60becff;p=server-backup.git wip #6145 @0.25 --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bf606a1..3909b46 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,7 @@ - + diff --git a/backup b/backup index 2c5d103..819b694 100755 --- a/backup +++ b/backup @@ -1,5 +1,8 @@ #!/bin/sh -killall -9 /usr/bin/rsync +if pgrep -x "$SERVICE" >/dev/null +then + exit 0 +fi gzip /var/log/*.log name=`cat /etc/backup-hostname` d=$(date +%Y%m%d%H%i)