From: Vincent Vanwaelscappel Date: Tue, 25 Jul 2023 13:27:28 +0000 (+0200) Subject: wip #6174 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=938532310f83e54ce39ba853b7d081dbaa02ded3;p=office-backup.git wip #6174 --- 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