BackupPC-users

Re: [BackupPC-users] Exclude a directory.

2009-11-27 03:19:28
Subject: Re: [BackupPC-users] Exclude a directory.
From: Tony Molloy <tony.molloy AT ul DOT ie>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 27 Nov 2009 08:16:33 +0000
On Thursday 26 November 2009 12:21:49 boulate wrote:
> Hi all !
>
> First, please excuse me for my bad English,  i'll try to do my best.
>
> I just have a problem with backuppc. I have to backup a server using SMB
> protocol, and everything work well.
>
> The problem is that I have to exclude a directory of the backup. I read the
> documentation and try to configure le folder to exclude from the web
> interface, but it doesn't work.
>
> So i tried to edit the /etc/backuppc/myhost.pl, and now it look like that :
>
> $Conf&#123;SmbShareName&#125; = &#91;
> &nbsp; 'commun'
> &#93;;
> $Conf&#123;SmbSharePasswd&#125; = 'password';
> $Conf&#123;SmbShareUserName&#125; = 'administrator';
> $Conf&#123;BackupFilesExclude&#125; = &#123;
> &nbsp; 'commun' => &#91;'/Commun/Informatique/Folder_to_exclude/',
> '/Commun/Informatique/Second_folder_to_exclude/'&#93;,
> &#125;;
>
>
> I tried with a "*" after the "Folder_to_exclude/" and I still have the same
> problem.
>
> What did I'm doing wrong ?
>
> I looked at the documentation, and search on internet, and I still can't
> solve this problem ... help !
>


Here is an example of excluding a Windows directory from a backup.

#$Conf{SmbShareName} = 'C$';
$Conf{SmbShareName} = 'D$';
$Conf{SmbShareUserName} = 'LRC-FILESRV\admin';
$Conf{SmbSharePasswd} = '******';

$Conf{BackupFilesExclude} = {
        'D$' => ['\.metadata','\System Volume Information', '\RECYCLER']
        };

You have to use back rather than forward slashes!!

Hope this helps

Tony

-- 

Dept. of Comp. Sci.
University of Limerick.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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>