I think you're having some confusion about what that clause in authorized_keys does. According to [1], it basically executes the command for you. So when the backuppc user creates the ssh connection, it runs: '/usr/bin/rrsync /' on the target. You don't need to "initiate" the rsync in this way because BackupPC manages that, once you select rsync as the method. All you need to do is permit rsync to run, which is not accomplished in the authorized_keys file. Remove that restriction.
Additionally, if you are connecting as the backuppc user, what provides that user permission to rsync the files? In my case, I followed this tip from the manual [2] and added an entry in /etc/sudoers (edited with visudo) to allow backuppc to run rsync without a password prompt: ## Allow backuppc user to use rsync backuppc ALL=NOPASSWD: /usr/bin/rsync --server * Hope this helps! [1]https://serverfault.com/a/803873/125737 [2] $Conf{RsyncClientPath}<https://backuppc-az.visionaryservers.com/backuppc?action=view&type=docs#_conf_rsyncclientpath_> = 'sudo /usr/bin/rsync'; ________________________________ From: Gandalf Corvotempesta <gandalf.corvotempe...@gmail.com> Sent: Thursday, May 23, 2024 3:31 AM To: General list for user discussion, questions and support <backuppc-users@lists.sourceforge.net> Subject: Re: [BackupPC-users] rsync via ssh/rrsync This is the command in authorized_keys: command="/usr/bin/rrsync /",restrict,from=.................... So it should allow rsync to access to the full server, as expected, but BPC doesn't show any files in the backup Il giorno gio 23 mag 2024 alle ore 10:24 Gandalf Corvotempesta <gandalf.corvotempe...@gmail.com> ha scritto: > > Il giorno gio 23 mag 2024 alle ore 09:16 Christian Völker via > BackupPC-users <backuppc-users@lists.sourceforge.net> ha scritto: > > > > Well, I guess you'll need to make sure ssh works fine. > > To do so, go to your backuppc server an switch into the user context of > > backuppc by "su - backuppc". From there issue "ssh user@hostname" and > > accept the public key of the target client. > > Once done, it should run without any problems. As long as you have rsync > > installed on your target and it is configured to be found in the default > > path. > > Yes, it was an ssh-key issue, backuppc is running from backuppc users, but > i've > transferred the root ssh key, not the backuppc key. Now this is fixed > and the backup > is made as expected, in the transfer log I can see the transferred files > > BUT there is a huge issue: when browsing the backup just finished, > backuppc is saying that is empty > and no files are shown. > > Any clou? _______________________________________________ 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/