Solved

Using Rsyncd with Backuppc gives permission errors, why?

Posted on 2011-03-08
1
2,271 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How does your company retain former employee data? 13 78
Client backup and data retention? 3 62
backup program 6 60
How to format tape Cartridge to LTFS 6 79
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

785 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