So here is the error... I tried to restore these files as a test....
2007-10-23 12:12:26 Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost <http://joe.dido.ca:888/backuppc/index.cgi?host=localhost> -n 13 -s / -t -r /home/rob -p /home/rob/ /home/rob/70_sare_header.cf /home/rob/70_sare_header0.cf /home/rob/70_sare_header2.cf /home/rob/70_sare_specific.cf 2007-10-23 12:12:30 Restore failed (BackupPC_tarCreate failed) My current localhost.pl # Local server backup of / as user backuppc $Conf{XferMethod} = 'tar'; $Conf{TarShareName} = ['/']; ### My old command before i just changed it.... #$Conf{TarClientCmd} = '/usr/bin/sudo /usr/local/bin/tarCreate -v -f - -C $shareName+ --totals'; $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath' . ' -c -v -f - -C $shareName --totals'; $Conf{TarFullArgs} = '$fileList'; $Conf{TarIncrArgs} = '--newer=$incrDate $fileList'; $Conf{BackupFilesExclude} = ['/tmp', '/root/.cpan', '/var/log', '/var/downloads', '/media', '/mnt', '/proc', '/var/lib/backuppc', '/sys', '/var/oldjoe', '/var/run']; My sudo file backuppc ALL = NOPASSWD: /bin/tar Anything else you need? Thanks for your help and prompt reply! Rob Morin Director of Technologies Dido Internet Inc. Montreal,Canada http://www.dido.ca 514-990-4444 Carl Wilhelm Soderstrom wrote: > On 10/23 11:53 , Rob Morin wrote: > >> I have no problem creating backups, just restoring them..... But >> please, can someone then tell me what is the best way to do it, i am >> very confused now... if someone can post an example localhost.pl file >> i can learn from i would greatly appreciate it... >> > > This is the one included in the Debian package, slightly modified for my > purposes (using sudo so the backup can get access to all files, for > example). > > > # cat /etc/backuppc/localhost.pl > > # Local server backup of /etc as user backuppc > # > $Conf{XferMethod} = 'tar'; > > $Conf{TarShareName} = ['/etc']; > > $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath' > . ' -c -v -f - -C $shareName --totals'; > > # let it back itself up anytime it wants to. > $Conf{BlackoutPeriods} = []; > > > there's of course a corresponding entry in /etc/sudoers: > > backuppc ALL=NOPASSWD: /bin/tar > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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/