Hi Bowie Thanks for clearing that up. So does that mean I should also amend these other excludes by putting a forward slash in front?
'etc/fstab', ==> '/etc/fstab', 'var/cache/apt/archives/*', ==> '/var/cache/apt/archives/*', Thanks Mark -----Original Message----- From: Bowie Bailey [mailto:bowie_bai...@buc.com] Sent: Wednesday, 10 February 2010 12:40 AM To: backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Exclude not working as expected Mark Wass wrote: > > Hi Guys > > I have a config file that looks likes this: > > $Conf{BackupFilesExclude} = { > > '/' => [ > > 'dev', > > 'proc', > > 'sys', > > 'tmp', > > 'var/lib/mysql', > > 'etc/fstab', > > 'var/log/mysql/mysql-bin.*', > > 'var/log/apache2/*', > > 'shares', > > 'var/lib/cvs', > > 'var/lib/cvs-old', > > 'var/cache/apt/archives/*', > > 'var/log/samba/*', > > 'var/log/installer/*', > > 'var/log/apt/*', > > 'var/log/samba/*', > > 'HDD2' > > ] > > }; > > $Conf{BackupFilesOnly} = {}; > > $Conf{ClientNameAlias} = '192.168.1.3'; > > $Conf{RsyncShareName} = [ > > '/' > > ]; > > I've got an exclude in there for "proc", the problem I'm getting is > that the "proc" is also getting excluded from "/opt/webmin/proc" I > only want the proc directly on the root "/" share to be excluded. How > can I make sure the no other "proc" folders are excluded? > You are telling it that you want all files/directories called 'proc' to be excluded. If you only want to exclude '/proc', then list it that way. You probably want to do the same thing with most of the rest of your list unless you are also wanting to exclude all 'tmp' directories, etc. $Conf{BackupFilesExclude} = { '/' => [ '/dev', '/proc', '/sys', '/tmp', ... 'HDD2' ] }; -- Bowie ---------------------------------------------------------------------------- -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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/ ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-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/