[Box Backup] Help with include/exclude
Chris Wilson
boxbackup@fluffy.co.uk
Wed, 14 May 2008 19:19:04 +0200 (CAT)
Hi Magnus,
On Wed, 14 May 2008, Magnus Homann wrote:
> I have directories of the form:
>
> /path/dirA/
> /path/dirB/
> /path/dirC/
>
> and so on.
>
> In each of these subdirecotries there are a few files that I want to
> back up, and two directories.
>
> /path/dirX/file1
> /path/dirX/file2
> /path/dirX/file3
> /path/dirX/file4
> /path/dirX/subdir1
> /path/dirX/subdir2
>
> Can someone suggest an efficient configuration for this?
ExcludeFilesRegex = ^/path/(dirA|dirB|dirC)/
ExcludeDirsRegex = ^/path/(dirA|dirB|dirC)/
AlwaysIncludeFilesRegex = (file1|file2|file3|file4)$
AlwaysIncludeDirsRegex = ^/path/(dirA|dirB|dirC)/(subdir1|subdir2)
AlwaysIncludeFilesRegex = ^/path/(dirA|dirB|dirC)/(subdir1|subdir2)
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |