From 938532310f83e54ce39ba853b7d081dbaa02ded3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 25 Jul 2023 15:27:28 +0200 Subject: [PATCH] wip #6174 --- backup | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backup b/backup index ca56585..fc59d89 100644 --- a/backup +++ b/backup @@ -4,14 +4,13 @@ then echo "backup is already running" exit 0 fi + +servers=(a b c d e f g h) gzip /var/log/*.log name=`cat /etc/backup-officename` d=$(date +%Y%m%d%H%i) -servers=(a b c d e f g h) - for ((i = 0; i < ${#servers[@]}; i++)) do - ${servers[$i]} /usr/bin/rsync -av --links --no-whole-file --exclude-from='/etc/backup.exclude' -e 'ssh -oStrictHostKeyChecking=no' "/data/mnt/${servers[$i]}/" "root@her.cubedesigners.com:/data/backup/$name/${servers[$i]}/" >> "/var/log/backup.${servers[$i]}.$d.log" 2>&1 done \ No newline at end of file -- 2.39.5