>On 6/15/2013 4:26 AM, stompdagg...@yahoo.com wrote: >>> Hello Bowie, >>> >>>> On 6/14/2013 4:23 AM, stompdagg...@yahoo.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', > ], >};
I was able to make it work with the following config: $Conf{RsyncShareName} = [ '/home', '/root' ]; $Conf{BackupFilesExclude} = { '/home' => [ '*/.VirtualBox/Machines', '*/Downloads', 'virt_admin/Machines' ] }; thanks for all the help ------------------------------------------------------------------------------ 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@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/