Re: [BackupPC-users] Exclude not working as expected
Mark Wass wrote: > 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/*', > Yes, anything that should only match at the beginning of the path should start with a slash. This works in much the same way it does on the command line: # cd proc This will take you into any directory called 'proc' that is available in whatever the current directory happens to be. # cd /proc This explicitly takes you to the '/proc' directory no matter where you start from. -- Bowie -- 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/
Re: [BackupPC-users] Exclude not working as expected
Anything that you want to be explicitly excluded you will need to put the full path in the excludes. Otherwise if it matches anywhere else in the filesystem it will be excluded. On Tue, Feb 9, 2010 at 5:03 PM, Mark Wass wrote: > 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/ > -- 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/
Re: [BackupPC-users] Exclude not working as expected
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/
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/