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
--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com
-------------------------------------------------------------------------
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]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/