On Wed, 2005-11-02 at 14:50 +0100, Christoph Pfund wrote:
> Hi,
>
> I tried both recomended methods to exclude some directories from
> backup. First i used the recomended notation $conf(BackupFilesExclude)
> = ['/temp/*']; with no success. The whole directory was copied. The
> second try was the standard notation $conf(BackupFilesExclude) =
> ['/temp']; with the same result. Is there a third way to set this
> conf. variable right?
>
This is from my previous post which I think should be in the archives:
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]>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/