BackupPC-users

Re: [BackupPC-users] Problem with $Conf{BackupFilesExclude}

2009-01-19 15:55:27
Subject: Re: [BackupPC-users] Problem with $Conf{BackupFilesExclude}
From: Bowie Bailey <Bowie_Bailey AT BUC DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 19 Jan 2009 15:53:45 -0500
Nick Bright wrote:
> In my /etc/BackupPC/pc/host.pl file, I have the
> $Conf{BackupFilesExclude} directive configured as:
> 
> $Conf{BackupFilesExclude} = {
>    '/usr/local/vpopmail/domains' => [
>      ''
>    ],
>    '/usr/local/MPP/working' => [
>      ''
>    ],
>    '/proc' => [
>      ''
>    ],
>    '/var/qmail/queue' => [
>      ''
>    ],
>    '/backup' => [
>      ''
>    ]
> };
> 
> This was configured through the web interface, on BackupPC v3.1.0.
> Backup method is "rsync".
> 
> The backup runs, but it disregards my exclude directives and backs up
> the directories I'm telling it not to back up. Unfortunately, because
> of the first exclude line not being excluded, this is making the
> backup take about 20 hours to run!
> 
> Any thoughts as to why these directories aren't being excluded?

Because you have not told it to exclude anything.  It works like this:

$Conf{BackupFilesExclude} = {
   'ShareName' => [
     'Exclusion'
   ],
};

So you have a list of (probably invalid) share names, none of which have
any exclusions.  You probably want to do something like this:

$Conf{BackupFilesExclude} = {
   '/' => [
       '/usr/local/vpopmail/domains',
       '/usr/local/MPP/working',
       '/proc',
       '/var/qmail/queue',
       '/backup',
   ]
};

Assuming that you are backing up the root directory.

-- 
Bowie

------------------------------------------------------------------------------
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/