]> _ Git - office-backup.git/commitdiff
wip #6174
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 25 Jul 2023 13:27:28 +0000 (15:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 25 Jul 2023 13:27:28 +0000 (15:27 +0200)
backup

diff --git a/backup b/backup
index ca56585f461546caa8008609eea7fab5cab147ad..fc59d8931b7e26c925307e540e33e64e9247684e 100644 (file)
--- 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