Hello,
On 2/1/2006 5:03 PM, Phil Stracchino wrote:
Stephan Holl wrote:
Hello Phil,
On Tue, 31 Jan 2006 15:07:35 -0500 Phil Stracchino
<[EMAIL PROTECTED]> wrote:
Stephan Holl wrote:
I am trying to implement all dot-files into a fileset. but cannot
manage it correctly. Perhaps someone has done that successfully.
# TEST-fileset
FileSet {
Name = "testfileset"
Include {
Options {
wildfile = "*."
}
Options {
Exclude = yes
RegexFile = ".?*$"
As has been pointed out before, this is broken. An unescaped . means
"anything", ? is IIRC "one or none of the characters before, * means
"any number of the characters before", and $ is the end-of-line
indicator. So, '.?*' will not work.
}
File="/home/user"
}
}
Perhaps anybody has done this kind of task successfully, because I
do not have any luck using regex.
I'm not sure why you'd want JUST the dotfiles, but the usual Unix
shell regex for selecting dotfiles and ONLY dotfiles is: .??*
Thanks for that. I will give it a try asap. So only files, no
dot-folders I guess.
As I am an apsolute RegEx-Dummy, I would kindly ask you to help out
here.
Perhaps my choice of words was misleading. In the Unix shell, the regex
.??* will select any file OR FOLDER whose name begins with a dot and
then contains at least two additional characters. This regex is
typically ised to select all dotfiles (and folders) without also
selecting . and .. at the same time.
The same principle should be applicable to a Bacula file selection regex.
By the way, the shell expansion does not use regular expressions...
To select only stuff starting with a dot, in a regular expression you
should write '\.[^\.].+'. Unless I'm wrong, of course :-)
That RE would be spelled like "take everything which starts with a dot,
and is followed by one character which is not a dot, and is followed by
at least one character".
Keep in mind that I, too, am not exactly an expert with REs and usually
need lots of trial-and-error...
I am curious, though, why you want to back up the dotfiles, but not any
other contents of the directory.
Me too...
Arno
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users