|
From: | Robert Nichols |
Subject: | Re: [rdiff-backup-users] [bug] Excluding hidden files the wrong way doesn't result in an error |
Date: | Thu, 5 Jan 2017 09:25:52 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
On 01/04/2017 01:00 PM, Ilario wrote:
Excluding a hidden file without full path doesn't rise an error (as happens with non hidden files) and copies it anyway; e.g. mkdir temp cd temp mkdir .one mkdir .two mkdir three mkdir four rdiff-backup --exclude .one --exclude ./.two --exclude ./three . ../backup ls -a ../backup . .. four .one rdiff-backup-data copies also the .one file and gives no warning. Does the dot have a special meaning there?
Since the directory you are backing up is ".", all your excludes have to begin with either "./" or "**". The only thing that is strange here is that you are not getting the "cannot match any files in the base directory" error. For some reason, dotfiles in an exclude do not trigger that message. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
[Prev in Thread] | Current Thread | [Next in Thread] |