[Box Backup] ExcludeFile command being ignored with Win32 client.
E.W. Peter Jalajas
boxbackup@fluffy.co.uk
Thu, 10 Aug 2006 06:31:25 -0700 (PDT)
I don't know if my BackupLocations section below helps, or hurts, or
irrelevant, as it's been months since I've tested it, but here is how
my template bbackupd.conf file uses regex on Windows clients. The
ntuser.dat and pagefile.sys sections in my second ExcludeFilesRegex are
inspired by recent personal experience and this thread, but are
completely untested as of yet. I hope to install Chris' new client
(THANKS, Chris! Amazing work!) soon; I'll report back what I find.
Directory backslashes in regex (and maybe many other characters, maybe
including ":", do need to be escaped with a "\".
Good luck,
Pete
BackupLocations
{
DocsSettings
{
Path = C:\Documents and Settings
ExcludeFilesRegex =
.+\.([aA][vV][iI]|[bB][mM][pP]|[iI][sS][oO]|[mM][pP][eE]?[3gG]|[tT][iI][fF]*|[tT][mM
][pP]|[bB][aAcC][kK]|[dD][bB][kK]|[bB][kK][~!1-9]|[mMtT][bB][kK]|[oO][lL][dD]|[sS][aA][vV]|[sS][wW][pP]|[wW][mM][aA]|[xX
][lL][kK]|[cC][sS][mM]|[dD][sS][kK]|[oO][bB][jJ]|[pP][aA][rR]|[dD][bB][xX]|[dD][lL][lL])$
ExcludeFilesRegex =
.*\\thumbs\.db$|.*\\history\.dat$|.*\\cookies\.txt$|.*\\~.*|.*\\ntuser\.dat$|.*\\pag
efile\.sys$
}
}
--- Chris Wilson <chris@qwirx.com> wrote:
> > I am now having problems with both the file and directory excludes:
> >
> > ExcludeFile = C:\pagefile.sys
>
> Please could you try this new build:
[http://bbdev.fluffy.co.uk/svn/box/chris/win32/releases/boxbackup-chris_general_767M-backup-client-mingw32.zip]
>
> I've tested directory excludes and they do now work, at least for me.
> I think that file excludes should work as well.
>
> > Failed to open 'C:\\pagefile.sys': error 32
>
> > 4) ExcludeDir = "C:\Documents and
> Settings\Administrator.MYSERVER\Cookies\"
> >
> The third one should work, without the backslash at the end of the
> directory name. Quotes are not necessary, and backslashes do not need
> to
> be doubled.
>