BackupPC-users

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

2009-01-20 12:19:28
Subject: Re: [BackupPC-users] Problem with $Conf{BackupFilesExclude}
From: Nick Bright <nick.bright AT valnet DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 20 Jan 2009 11:17:18 -0600
So, following that template I'd like to ask the list if I'm doing this 
right:

Linux Host:

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

Windows Host (using rsync configured to publish 'cDrive'):

$Conf{BackupFilesExclude} = {
  'cDrive' => ['/pagefile.sys','/Documents and 
Settings/','/WINNT/system32/config/','/WINNT/system32/drivers/']
};


---
- Nick Bright
   Network Administrator
   Valnet, LLC
   Tel 888-332-1616 x 315
   Fax 620-332-1201


Nick Bright wrote:
> That explains things! Seems like maybe the web interface needs a bit of 
> improvement in this regard.
> 
> In the web interface (which is how I added the exclusions), it simply 
> has a box for you to put a pathname to exclude and push "Add".
> 
> ---
> - Nick Bright
>    Network Administrator
>    Valnet, LLC
>    Tel 888-332-1616 x 315
>    Fax 620-332-1201
> 
> 
> Bowie Bailey wrote:
>> 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.
>>
> 
> ------------------------------------------------------------------------------
> 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/

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