Re: [BackupPC-users] BackupPC_tarCreate failed
2016-01-18 07:48:17
On 01/18 10:18 , David Rotger wrote:
> This is my localhost.pl, it's very diferent...
The important thing is that your localhost.pl (which I think is the default
one the package comes with) doesn't include 'sudo' which is needed to
capture files like /etc/shadow which are not world-readable.
> $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C $tarPath -c -v -f - -C
> $shareName --totals';
>> $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v
>> -f - -C $shareName --totals';
Obviously if you add sudo to localhost.pl, you'll also have to add it to
/etc/sudoers in order to enable it to run tar without prompting for a
password.
>> backuppc ALL=NOPASSWD: /bin/tar, /usr/bin/rsync
--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|