Hello, I hope you are all doing very well today.
I have BackupPC backing up a Linux client and it appears to only back up certain files. The pattern seems to be that if the directory has permissions of -rw-r--r-- BackupPC can enter, read the files and back them up correctly, but if the directory has permissions of drwx------ it creates that directory but cannot enter and read the files within it. The error log file shows multiple lines of: Remote[1]: rsync: opendir "/directory/with/files" failed: Permission denied (13) Other parts of the filesystem are being backed up correctly it appears. The BackupPC automatically connects as the user BackupPC on the client and that backupPC user has the ability to run rsync as root. On the client I have: $ cat /etc/sudoers.d/backuppc giving: backuppc ALL=NOPASSWD: /usr/bin/rsync backuppc ALL=NOPASSWD: /usr/bin/whoami #added this one for debugging >From BackupPC running the command: ssh -l backuppc client_IP "whoami" returns backuppc and running the command ssh -l backuppc client_IP "sudo whoami" returns root so it seems to be working correctly. In the client config file on BackupPC, variable is set as: RsyncClientCmd = "$sshPath -q -x -l backuppc $host $rsyncPath $argList+" I am not sure if the issue is a file / directory permission issue, or a BackupPC configuration issue, or something else. Any help would be greatly appreciated! Thank you, Joseph P.S. I sent this email before to the mailing list but it did not go through as I was not a member. I subscribed and am re-sending it.
_______________________________________________ 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/