Revert "/srv is not on BSD systems"
This reverts commit 853f6dff21
.
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.
This commit is contained in:
parent
853f6dff21
commit
d69a015025
|
@ -178,7 +178,7 @@ HOSTNAME=$(hostname)
|
||||||
BEGINNING=$(/bin/date +"%d-%m-%Y ; %H:%M")
|
BEGINNING=$(/bin/date +"%d-%m-%Y ; %H:%M")
|
||||||
|
|
||||||
if [ "$SYSTEM" = "linux" ]; then
|
if [ "$SYSTEM" = "linux" ]; then
|
||||||
rep="/bin /boot /lib /opt /sbin /usr /srv"
|
rep="/bin /boot /lib /opt /sbin /usr"
|
||||||
else
|
else
|
||||||
rep="/bsd /bin /sbin /usr"
|
rep="/bsd /bin /sbin /usr"
|
||||||
fi
|
fi
|
||||||
|
@ -218,6 +218,7 @@ rsync -avzh --stats --delete --delete-excluded --force --ignore-errors --partial
|
||||||
/root \
|
/root \
|
||||||
/var \
|
/var \
|
||||||
/home \
|
/home \
|
||||||
|
/srv \
|
||||||
-e "ssh -p $SSH_PORT" \
|
-e "ssh -p $SSH_PORT" \
|
||||||
"root@$SRV:/var/backup/" \
|
"root@$SRV:/var/backup/" \
|
||||||
| tail -30 >> /var/log/evobackup.log
|
| tail -30 >> /var/log/evobackup.log
|
||||||
|
|
Loading…
Reference in a new issue