/srv is not on BSD systems

This commit is contained in:
Jérémy Dubois 2018-07-16 11:54:11 +02:00
parent 391ef207f7
commit 853f6dff21

View file

@ -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"
rep="/bin /boot /lib /opt /sbin /usr /srv"
else
rep="/bsd /bin /sbin /usr"
fi
@ -218,7 +218,6 @@ 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