Thank you for your response Craig.  I took a step back and
reevalutated how I was doing this and I think my issues all were a
result of user accounts and various system level restrictions.  I'm
sure we could've picked our way through that but since this is just a
home lab, I'm being a bit lazy.  After a great deal of user setup/key
copying/visudo modifications/user SID changes/etc, I seemed no closer
to a solution.  I did notice that by default backuppc targets the root
user and, while I understand it's not always best practice to use the
root user since this is a home lab setup, I just went with it.  By
adding the backuppc user key to the root user on the target machine
and adding a line for root to be able to run rsync via visudo, the
backups worked as expected.

On Sun, Nov 1, 2020 at 10:04 PM Craig Barratt via BackupPC-users
<backuppc-users@lists.sourceforge.net> wrote:
>
> Does the error happen at the start of the transfer, or part way through.
>
> It would be helpful to know which version you are running, and the relevant 
> lines from the XferLOG file.
>
>
> Craig
>
> On Sun, Nov 1, 2020 at 1:56 PM Steve Zemlicka <stevezemli...@gmail.com> wrote:
>>
>> Update:  I was able to use visudo to add the following line:
>> backuppc ALL=NOPASSWD: /usr/local/bin/rsync
>>
>> I am now able to run "sudo /usr/local/bin/rsync" when SSHed in without
>> being prompted for a password.  I've also manually specified the rsync
>> path of rsync in the RsyncClientCmd but I still get a "connection
>> reset by peer" error when running.
>>
>> On Sun, Nov 1, 2020 at 3:39 PM Steve Zemlicka <stevezemli...@gmail.com> 
>> wrote:
>> >
>> > I am having trouble getting rsync to initialize without requiring
>> > password.  I have setup ssh passwordless login and verified this is
>> > working from the backuppc server.  However if I then sudo rsync (or
>> > sudo /usr/bin/rsync), I am prompted for a password.  Does anyone have
>> > a link to this specific issue or know off hand how to enable this on
>> > BSD (FreeNAS)?
>>
>>
>> _______________________________________________
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:    https://github.com/backuppc/backuppc/wiki
>> Project: https://backuppc.github.io/backuppc/
>
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    https://github.com/backuppc/backuppc/wiki
> Project: https://backuppc.github.io/backuppc/


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to