BackupPC-users

Re: [BackupPC-users] [SMB] HowTo backup non shared SMB-folder

2011-11-08 15:32:52
Subject: Re: [BackupPC-users] [SMB] HowTo backup non shared SMB-folder
From: Bowie Bailey <Bowie_Bailey AT BUC DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 08 Nov 2011 15:31:10 -0500
On 11/8/2011 11:59 AM, Carl Wilhelm Soderstrom wrote:
> On 11/08 12:47 , sudo_root wrote:
>> As an example, I would like to backup folder temp on mycomputer1 (I can 
>> access the folder with smb://computer1/c$/temp and backuppc can backup the 
>> C$ on same computer).
>>
>> I have tried with C$\temp etc but no dice.
> I believe what you're looking for is 'BackupFilesOnly'.
>
> >From config.pl:
> #    $Conf{BackupFilesOnly} = {
> #       'c' => ['/myFiles', '/important'],      # these are for 'c' share
> #       '*' => ['/myFiles', '/important'],      # these are other shares
> #    };
>
> What you'll want for your example is something like:
>
> $Conf{BackupFilesOnly} = {
>       'C$' => ['\temp'],
> }
>
> NOTE that for SMB shares the '\' goes in the opposite direction compared to
> an rsync share. (someone please correct me if this is no longer necessary).

You can use either one.  Samba will translate.

Also note that this cannot be combined with BackupFilesExclude.  You can
only have one or the other when backing up via samba.

-- 
Bowie

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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/