Ah, I see your point.
The trick that I noticed, and no I haven't tried it yet, was I thought your
example would only match files on the first level of /strangedir, and not
subsequent levels, e.g. it seems that the pattern will catch all files:
/strangedir/file1
/strangedir/file2
but not:
/strangedir/dir1/file3
/strangedir/dir2/dir3/file4
But then I see that its a regex not a wildcard, so yes, I realize your idea
might work fine. I'll check it out, thank you and apologies for missing the
subtlety there.
-- D
On 27 Jan, 2010, at 11:45 , Arno Lehmann wrote:
> Hi,
>
> 26.01.2010 23:25, Daniel wrote:
>> Arno,
>>
>> On 26 Jan, 2010, at 15:21 , Arno Lehmann wrote:
>>
>>> Hi,
>>>
>>> 26.01.2010 18:05, Daniel wrote:
>>>> I have the following situation:
>>>>
>>>> I am backing up a Windows hard disk (let's call it R: for
>>>> remote)... it is NOT the C: drive on the remote host. I wish to
>>>> back up nearly everything on it EXCEPT for one directory:
>>>> R:/strangedir Under R:/strangedir I *ONLY* want to keep the
>>>> directory tree structure, NOT the files in it. This tree
>>>> structure changes frequently and must match files elsewhere in
>>>> the backup set, so that is why its important that I copy the
>>>> tree structure but not necessarily the files within it as those
>>>> can be repopulated by a script from other data that is already
>>>> backed up elsewhere in R:.
>>>>
>>>> How can I make a rule for R:/strangedir? I've thought about
>>>> trying to use RegexDir and RegexFile, but I can't seem to make
>>>> them handle arbitrary recursive depth.
>>> Untested:
>>>
>>> File Set { Name = R-without-strangedir Include { Options {
>>> Exclude = Yes Regex File = "^.:/strangedir/.*" } Options {
>>> Signature = SHA1 } File = "r:/" } }
>>>
>>> The first options block should catch all files below strangedir
>>> (on any drive) and exclude them; everything else, i.e. directory
>>> entries and files in other trees, would be backed up.
>>>
>>> Arno
>>
>> Thanks, excepting I want the directory tree under strangedir, e.g.:
>>
>>
>> /strangedir/dir1/dir2 /strangedir/dir3/dir4/dir5
>> /strangedir/dir3/dir4/dir6
>
> Hmm... I don't understand why my idea wouldn't work - probably only
> point the File Set to "File = "r:/strangedir"" would be sufficient...
>
> Have you tested and verified using the 'estimate listing' command?
>
> Arno
>>
>> I am working with the client to possibly come up with a workaround
>> for this, but it is not forthcoming at the moment.
>>
>> -- D
> --
> Arno Lehmann
> IT-Service Lehmann
> Sandstr. 6, 49080 Osnabrück
> www.its-lehmann.de
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|