Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-25 Thread Daniel Berteaud
Le 16/06/2017 à 05:13, Craig Barratt via BackupPC-users a écrit : A very bad hack would be to use something like this: $Conf{RsyncSshArgs} = ['-e', '/usr/bin/sudo -p']; It's working great. Might not be the cleanest solution, but it's easy, and doesn't require deploying any additional

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-16 Thread Daniel Berteaud
Le 16/06/2017 à 05:13, Craig Barratt via BackupPC-users a écrit : You can set $Conf{RsyncSshArgs} to a command that simply executes its arguments (like ssh does). However, rsync adds the host name to whatever you specify in $Conf{RsyncSshArgs}, so unfortunately this doesn't work since the

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Craig Barratt via BackupPC-users
You can set $Conf{RsyncSshArgs} to a command that simply executes its arguments (like ssh does). However, rsync adds the host name to whatever you specify in $Conf{RsyncSshArgs}, so unfortunately this doesn't work since the first argument is the host name, and env will give an error:

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Craig Barratt via BackupPC-users
> > Doesn't BPC v4 have the "rsyncd" transfer method? That uses pure rsync > with no encryption overhead. Yes v4 supports rsyncd. Craig -- Check out the vibrant tech community on one of the world's most engaging tech

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Bowie Bailey
On 6/15/2017 11:11 AM, Richard Shaw wrote: On Thu, Jun 15, 2017 at 9:53 AM, Daniel Berteaud > wrote: Le 15/06/2017 à 15:53, Michael Stowe a écrit : I looked on my own setup to answer this question, since I used a

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Richard Shaw
On Thu, Jun 15, 2017 at 9:53 AM, Daniel Berteaud < dan...@firewall-services.com> wrote: > Le 15/06/2017 à 15:53, Michael Stowe a écrit : > > > I looked on my own setup to answer this question, since I used a similar > method under 3.x and have been backing up the local systems under 4.x since >

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Daniel Berteaud
Le 15/06/2017 à 15:53, Michael Stowe a écrit : I looked on my own setup to answer this question, since I used a similar method under 3.x and have been backing up the local systems under 4.x since the alpha versions. Turns out I just use a pretty vanilla rsync/ssh setup, and set up ssh keys

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Paul Fox
Michael Stowe wrote: > On 2017-06-15 03:25, Daniel Berteaud wrote: > > Hi there. > > > > Using BackupPC since v2, I used to be able to BackupPC the host itself > > (the one running BackupPC) using rsync by simply modifying > > $Conf{RsyncClientCmd} (to something like '/usr/bin/sudo

Re: [BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Michael Stowe
On 2017-06-15 03:25, Daniel Berteaud wrote: Hi there. Using BackupPC since v2, I used to be able to BackupPC the host itself (the one running BackupPC) using rsync by simply modifying $Conf{RsyncClientCmd} (to something like '/usr/bin/sudo $rsyncPath $argList', and same for

[BackupPC-users] BackupPC v4 and rsync for localhost

2017-06-15 Thread Daniel Berteaud
Hi there. Using BackupPC since v2, I used to be able to BackupPC the host itself (the one running BackupPC) using rsync by simply modifying $Conf{RsyncClientCmd} (to something like '/usr/bin/sudo $rsyncPath $argList', and same for $Conf{RsyncClientRestoreCmd}). THis worked with BackupPC v3