On Wed, 2005-10-19 at 05:46 +0200, Alex Schaft wrote:
> Craig Barratt wrote: 
> > Alex Schaft writes:
> > 
> >   
> > > I'm trying to stop backuppc from backing up mp3 files. I've tried 
> > > setting the exclude file parameter to *.mp3 as well as just mp3, but 
> > > they're still being backed up.
> > >     
> > 
> > What is your XferMethod?
> > 
> >   
> SMB to windows clients.
> 
> I checked the archives, and found the below from 2002, but it didn't
> work properly (All of the sudden it was failing to backup folders with
> a single character e.g. \\client\docs\b, where these folders didn't
> exist.
> 
>      $Conf{BackupFilesExclude} = [
>       "*/Temporary Internet Files/*",
>       "*.MP3",
>       "*.mp3"
>      ];
> 
I experimented a bit and found that the exclusions do work, and more
than one exclusion can be used. The trick was to prefix a backslash to
the directory or file that is excluded. Forward slashes did not work.
The exclusions are relative to the root of the share, of course.

I am using samba-3.0.14a on a Gentoo box, backing up Windows XP Pro and
Server 2003.

Some examples:

$Conf{BackupFilesExclude} = [ '\foo' ]

$Conf{BackupFilesExclude} = [ '\foo', '\*\bar' ]

Per-share excludes can be done as well:

$Conf{BackupFilesExclude} = { 
        'share1$' => [ '\foo' , '\bar' ],
        'share2$' => [ '\foobar' ], 
};

-- 
Travis Fraser <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to