BackupPC-users

Re: [BackupPC-users] exclude ignores hidden folders

2013-06-17 10:09:35
Subject: Re: [BackupPC-users] exclude ignores hidden folders
From: Bowie Bailey <Bowie_Bailey AT BUC DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 17 Jun 2013 10:07:22 -0400
On 6/15/2013 4:26 AM, StompDagger1 AT yahoo DOT com wrote:
>> Hello Bowie,
>>
>>> On 6/14/2013 4:23 AM, StompDagger1 AT yahoo DOT com wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm trying to backup my /home folder but exclude the vm folder used by
>>>> VB, but for some reason when ever I run backup, the folder's content
>>>> is always backed up.
>>>>
>>>> what am I doing wrong? here is the host's config:
>>>>
>>>> $Conf{RsyncShareName} = [
>>>>     '/home',
>>>>     '/root'
>>>> ];
>>> Ok, so you have two shares, '/home' and '/root'.
>>>
>>>> $Conf{BackupFilesExclude} = {
>>>>     '/home/virt_admin' => [
>>>>       'Machines'
>>>>     ],
>>> This will do absolutely nothing, since there is no share named
>>> '/home/virt_admin'
>> I see, strangely enough I remember that this actually worked and the content 
>> of Machines wasn't updated.
>> none the less I'll do this, thanks.
>>>>     '/home/*' => [
>>>>       '.VirtualBox/Machines',
>>>>       'Downloads'
>>>>     ]
>>>> };
>>> This one should work to exclude files/folders with these names under the
>>> '/home' share.
>> thing is, it doesn't seems to do that, I still backup this folder's content.

Actually, I take that back.  I must not have noticed the * at the end.  
That one won't work either because there is not a share named '/home/*'.

The first part of the exclude must either be a share name or '*' if it 
is to apply to all shares.  So in your case, only the following will work:

'/root'
'/home'
'*'

Anything else will be ignored.  So replace both of your current excludes 
with this and it should work better:

$Conf{BackupFilesExclude} = {
      '/home' => [
      '.VirtualBox/Machines',
      'Downloads',
      '/virt_admin/Machines',
    ],
};

-- 
Bowie

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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>