From d69a015025494c96768cedca4f1fef51ccc13d1c Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Mon, 16 Jul 2018 16:04:43 +0200 Subject: [PATCH] Revert "/srv is not on BSD systems" This reverts commit 853f6dff215e071029545a7260c73d327d320d10. Paths in systems variable are always backed up, that is not the case of /srv. We have to manually remove /srv when we do not want it. --- zzz_evobackup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zzz_evobackup b/zzz_evobackup index b477d53..b8dfa35 100755 --- a/zzz_evobackup +++ b/zzz_evobackup @@ -178,7 +178,7 @@ HOSTNAME=$(hostname) BEGINNING=$(/bin/date +"%d-%m-%Y ; %H:%M") if [ "$SYSTEM" = "linux" ]; then - rep="/bin /boot /lib /opt /sbin /usr /srv" + rep="/bin /boot /lib /opt /sbin /usr" else rep="/bsd /bin /sbin /usr" fi @@ -218,6 +218,7 @@ rsync -avzh --stats --delete --delete-excluded --force --ignore-errors --partial /root \ /var \ /home \ + /srv \ -e "ssh -p $SSH_PORT" \ "root@$SRV:/var/backup/" \ | tail -30 >> /var/log/evobackup.log