So i found this post , i forget where that mentioned to use a tarCreat 
file via sudo to do localhost backups... that works fine but restoring 
does not work, any help appreciated....  All other servers vis rsync 
work just fine....

HELP

locahost.pl file

# Local server backup of / as user backuppc
$Conf{XferMethod} = 'tar';
$Conf{TarShareName} = ['/'];
$Conf{TarClientCmd} = '/usr/bin/sudo /usr/local/bin/tarCreate -v -f - -C 
$shareName+ --totals';
#$Conf{TarClientCmd} = '/usr/bin/sudo /etc/backuppc/tar-create -v -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', '/var/www/vi$



The tarCreat file used

#!/bin/sh -f
exec /bin/tar -c $*


Error as seen in the web gui along with the command used

2007-10-17 16:05:56 Running: /usr/share/backuppc/bin/BackupPC_tarCreate 
-h localhost <http://joe.dido.ca:888/backuppc/index.cgi?host=localhost> 
-n 8 -s / -t -r /home/rob -p /home/rob/ /home/rob/Videotron.txt
2007-10-17 16:06:00 Restore failed (BackupPC_tarCreate failed)

The sudoers file

root    ALL=(ALL) ALL
backuppc ALL = NOPASSWD: /usr/local/bin/tarCreate

HELP!

-- 

Rob Morin
Director of Technologies
Dido Internet Inc.
Montreal,Canada
http://www.dido.ca
514-990-4444

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to