Solved

Using Rsyncd with Backuppc gives permission errors, why?

Posted on 2011-03-08
1
2,279 Views
Last Modified: 2013-12-01
I'm setting up Backuppc on Ubuntu 10.10. I installed rsyncd, configured backuppc and ran my first full backup. Mostly everything worked, but a lot of files did not get copied. When I look at the backup errors, I see a lot of:

Remote[1]: rsync: opendir "/home/jean/.evolution/memos/local" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/tasks/local" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/cache" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/calendar/local" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/mail/spooldir" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/mail/pop" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/mail/imap" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/signatures" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.gconfd" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.cache" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.gconf" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.mozilla" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.kde" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.dbus" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.local/share/gvfs-metadata" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.gnome2" (in backup) failed: Permission denied (13)

rsync is running as root, so I don't understand why it can't read these files? At least, I'm pretty sure it's running
as root, I followed the instructions at https://help.ubuntu.com/community/rsync to set it up. As a test, I
attempted to rsync manually, and while it was prompting for the password, I did a 'ps -ef|grep rsy' in another
terminal. It showed 'root' as the owner of the 'rsync --daemon' process.

One possible clue, when I spot checked some of the files that were skipped the permissions for group & other were empty, ie, :

jean@Ubuntu:~/.evolution$ ls -l memos

drwx------ 3 jean jean 4096 2008-11-27 20:58 local

I'm stumped, any help appreciated.

Thanks.

Jean
0
Comment
Question by:JPNeron
1 Comment
 

Accepted Solution

by:
JPNeron earned 0 total points
ID: 35083964
I think I found the problem. In the rsyncd.conf file, I specified user nobody, group nobody (as per the setup instructions). I noticed when the backup was running that the rsync process was owned by 'nobody', not root as I saw earlier. I think during the password stage, rsync is run by root, but once the password is accepted, it's reinvoked as the user specified in rsyncd.conf. So, it looked like it was being run by root, but that was only during negotiation. Once I changed  the user id in rsyncd.conf to 'root', the problem went away.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We planned to use NetApp's SnapManager for Exchange (SME) to make three snapshots a day for quick recovery. Additional we planned to use Symantec NetBackup7 to backup to tape media for disaster recovery. We followed the best practice guide from NetA…
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question