BackupPC-users

Re: [BackupPC-users] How does BackupPC rsync over ssh work?

2011-09-26 14:55:26
Subject: Re: [BackupPC-users] How does BackupPC rsync over ssh work?
From: Tim Fletcher <tim AT night-shade.org DOT uk>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 26 Sep 2011 19:53:25 +0100
On Mon, 2011-09-26 at 15:37 +0200, Maarten te Paske wrote:

> OK, I will read a bit more into the rsync documentation. I thought this
> way I wouldn't be able to limit the privileges through sudo, but maybe
> I'm wrong.

I use the following line in /etc/sudoers to allow the user backups to
call rsync as root. Note this line does break rsync based recovery, but
this is part of the plan as it prevents the backuppc server writing to
the client being backed up.

backups ALL=NOPASSWD: /usr/bin/rsync --server --sender *

You will also need to remove the "requiretty" option from /etc/sudoers
too.

The $Conf{RsyncClientCmd} command becomes:
$sshPath -q -x -l backups $host sudo $rsyncPath $argList+


-- 
Tim Fletcher <tim AT night-shade.org DOT uk>


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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/