BackupPC-users

Re: [BackupPC-users] BackupFilesExclude and BackupFilesOnly Not Working

2009-04-16 12:40:51
Subject: Re: [BackupPC-users] BackupFilesExclude and BackupFilesOnly Not Working
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: John Aranibar <cholotron AT hotmail DOT com>
Date: Thu, 16 Apr 2009 09:31:05 -0700
John writes:

> $Conf{SmbShareName} = [
  > 'C$'
> ];

> #FILES TO BACKUP
> #---------------------------------------------------------
> $Conf{BackupFilesOnly} = {
>       'c' => ['/MS_OUTLOOK/*'],
>     };

First, the 'c' should be 'C$' - it should match the share name.
Also, you can't use wildcards in $Conf{BackupFilesOnly}.  You
need to use an absolute path.

> #FILES TO EXCLUDE
> #---------------------------------------------------------
> $Conf{BackupFilesExclude} = {
>        'c' => ['/Program Files/*', '/WINDOWS/*'],
>        'c' => ['/Documents and Settings/*'],
>     };

Once again the 'c' should be 'C$'.

Unfortunately smbclient doesn't allow you to use both
$Conf{BackupFilesOnly} and $Conf{BackupFilesExclude}. One choice
is to change the share to be just the directory tree you want to
back up and leave $Conf{BackupFilesOnly} empty.

Using wildcards in $Conf{BackupFilesExclude} with smbclient is ok,
but you need to use '\' instead of '/':

 $Conf{BackupFilesExclude} = {
        'C$' => ['\\Program Files\\*', '\\WINDOWS\\*'],
        'C$' => ['\\Documents and Settings\\*'],
     };

(If you are entering this via the CGI interface you only need
to enter a single '\'.)

Craig

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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>