Thanks Falko!
I tried your suggestion:

$Conf{RsyncClientPath} = '/usr/bin/sudo /usr/bin/rsync';
and
$Conf{RsyncClientCmd} = ' $rsyncPath $argList+';

but now the backup aborted:

full backup started for directory /etc/ (baseline backup #685)
Running: /usr/bin/sudo\ /usr/bin/rsync --server --sender --numeric-ids --perms 
--owner --group -D --links --hard-links --times --block-size=2048 --recursive 
--ignore-times . /etc/
Xfer PIDs are now 72477
Got remote protocol 1667594309
Fatal error (bad version): Exec failed for /usr/bin/sudo /usr/bin/rsync 
--server --sender --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive --ignore-times . /etc/

Read EOF: Connection reset by peer
Tried again: got 0 bytes
fileListReceive() failed
Done: 0 files, 0 bytes
Got fatal error during xfer (fileListReceive failed)
Backup aborted (fileListReceive failed)
Not saving this as a partial backup since it has fewer files than the prior one 
(got 0 and 0 files versus 0)

So I checked:

su backuppc /usr/bin/sudo /usr/bin/rsync

and it is asking me for a password.

There a two points unclear to me:
1. shouldn't it be avoided by:

backuppc ALL=NOPASSWD :/usr/bin/rsync

2. I don't remember setting any password for user backuppc, at all.
Only for the web interface, which is different.

Or is something totally different wrong?


Am 05.02.2022 um 19:47 schrieb Falko Trojahn:
Hi,

I try to backup my local host.
I made these settings:

$Conf{RsyncClientCmd} = ' /usr/bin/sudo $rsyncPath $argList+';


Using:

$Conf{RsyncClientPath} = '/usr/bin/sudo /usr/bin/rsync';

works for me

Which settings are missing?


F.

_______________________________________________
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