On 08/26 12:57 , Osburn, Michael wrote: > I am trying to backup my backuppc server while excluding the backups > directory. No matter what I put under excludes in the config, I still > end up with the cpool and pc directories in my backups.
You misunderstand the exclude syntax. Here's an example for a (SMB) share named 'c$': $Conf{BackupFilesExclude} = { 'c$' => [ '/RECYCLER', '/winnt/tmp', '/temp', '/WUTemp', '/WINDOWS', '/Documents and Settings/*/Local Settings/Temporary Internet Files/', '/Documents and Settings/*/Local Settings/history/', '/Documents and Settings/*/Cookies/', '/Documents and Settings/*/Favorites/', '/Documents and Settings/*/IETldCache/', '/Documents and Settings/*/IECompatCache/', '/Documents and Settings/*/NetHood/', '/Documents and Settings/*/PrivacIE/', '/Documents and Settings/*/PrintHood/', '/pagefile.sys', '/hiberfil.sys', ] }; A simpler version is this one, which I use for the 'localhost' configuration. $Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc', '/var/log', '/tmp', '/var/tmp', '/mnt', '/media']; To help you a little more along the way, here's the localhost.pl file I use. I use tar backups for the local machine rather than rsync, because bandwidth to the local machine is so cheap it's better to spend that than the CPU cycles on rsync. # # Local server backup of /etc as user backuppc # $Conf{XferMethod} = 'tar'; # let it back itself up anytime it wants to. $Conf{BlackoutPeriods} = []; $Conf{TarShareName} = ['/']; $Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc', '/var/log', '/tmp', '/var/tmp', '/mnt', '/media']; $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName --totals'; # remove extra shell escapes ($fileList+ etc.) that are # needed for remote backups but may break local ones $Conf{TarFullArgs} = '$fileList'; $Conf{TarIncrArgs} = '--newer=$incrDate $fileList'; # turning off compression on these files, so they can be recovered without # backuppc. # wouldn't make sense to need your backup server, # in order to recover your backup server, now would it? $Conf{CompressLevel} = 0; -- Carl Soderstrom Systems Administrator Real-Time Enterprises www.real-time.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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/