From: Vincent Vanwaelscappel Date: Wed, 21 May 2025 08:38:00 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cfd7105a774c49b29ce314408e45fb19d18e3908;p=server-backup.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 04b5627..b9d30ac 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,9 +5,7 @@ - - - + diff --git a/backup b/backup index 53b0695..2491d01 100755 --- a/backup +++ b/backup @@ -7,4 +7,5 @@ fi gzip /var/log/*.log name=`cat /etc/backup-hostname` d=$(date +%Y%m%d%H%i) -/usr/bin/rsync -av --links --delete --max-delete=1 --no-whole-file --delete-excluded --exclude-from='/etc/backup.exclude' -e 'ssh -oStrictHostKeyChecking=no' /data/ "root@dobermann.cubedesigners.com:/home/serversbackup/$name/" > "/var/log/backup.$d.log" 2>&1 +s="${STORAGE:=default}" +/usr/bin/rsync -av --links --delete --max-delete=1 --no-whole-file --delete-excluded --exclude-from='/etc/backup.exclude' -e 'ssh -oStrictHostKeyChecking=no' /data/$s$name/" > "/var/log/backup.$d.log" 2>&1