Merge pull request #1 from SteenSchutt/SteenSchutt-patch-1

Prevent v-backup-user from excluding folders named logs further down …
This commit is contained in:
Steen Schütt 2019-04-10 14:43:46 +02:00 committed by GitHub
commit b650ae5bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
exlusion=$(echo -e "$WEB" |tr ',' '\n' |grep "^$domain:")
set -f
fargs=()
fargs+=(--exclude='logs/*')
fargs+=(--exclude='./logs/*')
if [ ! -z "$exlusion" ]; then
xdirs="$(echo -e "$exlusion" |tr ':' '\n' |grep -v $domain)"
for xpath in $xdirs; do