BackupPC-users

Re: [BackupPC-users] Exclude files

2009-01-15 18:02:51
Subject: Re: [BackupPC-users] Exclude files
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: <chrischan AT knebb DOT de>
Date: Thu, 15 Jan 2009 13:59:21 -0800
Christian writes:

> I'm having some issues with excluding directories.
> 
> If have the following settings in the host.pl:
> =============================snip===========
> $Conf{RsyncShareName} = [
>         '/',
>         '/srv'
> ];
> $Conf{BackupFilesExclude} = {
>         'srv' => [
>         'file1',
>         '/bu'
> ]
> };

You have a typo.  The share name is "/srv", not "srv", so you need:

 $Conf{BackupFilesExclude} = {
         '/srv' => [
         'file1',
         '/bu'
 ]

Also, you are excluding files below "/srv", but not "/".  You need
to either restrict rsync with --one-file-system or exclude /srv
under "/".

Craig

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>