On 01/22 11:44 , B. Cook wrote: > Or is there a better, more efficient way?
sudo is the way to go. I actually use tar on my local machines, because the amount of OS data to be backed up (and it's local, so bandwidth isn't a problem) is small enough that it's probably faster to use tar than rsync. Here's a localhost.pl from one of my boxen: backuppc:~# cat /etc/backuppc/localhost.pl # # Local server backup of /etc as user backuppc # $Conf{XferMethod} = 'tar'; # For tar, if the exclude file contains a "/" it is assumed to be anchored # at the start of the string. Since all the tar paths start with "./", # BackupPC prepends a "." if the exclude file starts with a "/". Note # that GNU tar version >= 1.13.7 is required for the exclude option to # work correctly. For linux or unix machines you should add # "/proc" to $Conf{BackupFilesExclude} unless you have specified # --one-file-system in $Conf{TarClientCmd} or --one-file-system in # $Conf{RsyncArgs}. Also, for tar, do not use a trailing "/" in # the directory name: a trailing "/" causes the name to not match # and the directory will not be excluded. $Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc/pc', '/var/lib/backuppc/cpool', '/var/lib/backuppc/pool', '/var/lib/backuppc/trash', '/var/lib/backuppc/log', '/var/lib/backuppc/burn', '/var/lib/backuppc/archive', '/var/log', '/tmp', '/var/tmp']; $Conf{TarShareName} = ['/']; $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName --totals'; # 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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/