From 170bd64ec2a36c8d237cc1ab32aa37d46b964b13 Mon Sep 17 00:00:00 2001 From: olshek Date: Wed, 4 May 2016 14:13:36 +0300 Subject: [PATCH] improved regular expression in v-backup-user file The regular expression now uses exact match of a folder/file name. With the previous version, some files were ignored during the backup process(for example .gitconfig, because it contains "conf"). --- 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 0a335da47..425a659f5 100755 --- a/bin/v-backup-user +++ b/bin/v-backup-user @@ -479,7 +479,7 @@ if [ "$USER" != '*' ]; then set -f i=0 - for udir in $(ls -a |egrep -v "conf|web|dns|mail|^\.\.$|^\.$"); do + for udir in $(ls -a |egrep -v "^conf$|^web$|^dns$|^mail$|^\.\.$|^\.$"); do exclusion=$(echo "$USER" |tr ',' '\n' |grep "^$udir$") if [ -z "$exclusion" ]; then ((i ++))