Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A detailed walkthrough on creating backups using rsync' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A detailed walkthrough on creating backups using rsync
Authored by: kd4ttc on Nov 28, '04 11:52:45PM

This does not work. There are a few problems. The OS now uses xinetd, which needs to be incorporated. However, the big problem is that when running rsync from a client it dies, with the error unable to open configuration file "rsyncd.conf": no such file or directory. That error comes up on the client, which is decidedly odd, since that file ought to be read by the rsync daemon. Yes, I have the rsyncd.conf file in /etc/ on the server. For now, this hint does not work on the Mac. I will look about for a method that works and get back with a reply and further info. If anyone is using rsync let me know. Stee



[ Reply to This | # ]
Does work, but be carefull of user and group
Authored by: kd4ttc on Dec 02, '04 04:25:10PM

rsync in this example does work, but the script is misleading in this way: The user specification must be root, and you must have the root user enabled on the server. That is because when SSH logs in it logs in as root, then when writing the files the rsync daemon expects that root permission is to be used for writing the files. If you want to use rsync and not use the root user it can be done, but the user and group in the rsync profile must be appropriate. The reason the example is misleading is that remoteuser is specified as a variable set to root. In this case it must be root and you cannot change it in the code and expect things to work with the given daemon configuration files.

There is a way to log in with SSH where you log in under one user's name, but then run rsync as root. See the SSH man pages for how to do this.

By the way there is a typo in the description. In the daemon configuration the lines ought to be "read only" rathen than "read inly" in 2 places.

Steve



[ Reply to This | # ]