From a981ddb468603f571d765c00361765c882001824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steen=20Sch=C3=BCtt?= <6237359+SteenSchutt@users.noreply.github.com> Date: Wed, 10 Apr 2019 14:42:10 +0200 Subject: [PATCH] Prevent v-backup-user from excluding folders named logs further down the tree This change will fix issues with files like `public_html/wp-content/plugins/sitepress-multilingual-cms/classes/logs/interface-wpml-log.php` from being excluded, but still exclude the intended main logs directory. Fixes a semi-widespread issue with VestaCP and WPML. --- bin/v-backup-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-backup-user b/bin/v-backup-user index 90a42b2e..2e81ada2 100755 --- a/bin/v-backup-user +++ b/bin/v-backup-user @@ -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