Le 05/02/2022 à 14:36, corona_24 a écrit :
Hello,
I try to backup my local host.
I made these settings:
$Conf{RsyncClientCmd} = ' /usr/bin/sudo $rsyncPath $argList+';
and allow backuppc user to run rsync with sudo without password
(visudo):
backuppc ALL=NOPASSWD :/usr/bin/rsync
Anyway, I got the following errors:
incr backup started back to 2022-01-29 01:00:01 (backup #677) for
directory /etc/
Running: /usr/bin/rsync --server --sender --numeric-ids --perms --owner
--group -D --links --hard-links --times --block-size=2048 --recursive .
/etc/
Xfer PIDs are now 21378
Got remote protocol 31
Negotiated protocol version 28
Remote[1]: rsync: opendir "/etc/polkit-1/localauthority" failed:
Permission denied (13)
Remote[1]: rsync: opendir "/etc/multipath" failed: Permission denied (13)
...(list is actually longer)
It seems, everything what can only accessed by root, failed by backup:
drwx------ 7 root root 4096 Dez 4 2016 localauthority/
Which settings are missing?
_______________________________________________
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/
Hello,
I will assume we are talking about BackupPC 4.x . For my localhost I
have this in the host config:
$Conf{RsyncSshArgs} = [
'-e',
'/usr/bin/sudo -p'
];
On the server config:
$Conf{RsyncClientPath} = 'sudo /usr/bin/rsync';
$Conf{RsyncBackupPCPath} = '/usr/libexec/backuppc-rsync/rsync_bpc';
In "sudoers", depending on your sudo version you may need to either
specify the exact full command (get it from the error message), or use a
wildcard:
backuppc ALL=(ALL:ALL) NOPASSWD: /usr/bin/rsync --server --sender *
This is "certified to work" for me at least (on Debian).
Hope it helps.
_______________________________________________
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/