I started using Rsync by following the directions in this tutorial:
Mirror Your Web Site With rsync | HowtoForge - Linux Howtos and Tutorials
I used this command to run my first remote sync:
**rsync -avz -e ssh email@example.com:/srv/www/htdocs/ /srv/www/htdocs/
Everything seemed to synchronize however I was concerned about the “rysnc error” below. Do I need to resolve this error before automating my rsync job?
sent 347546 bytes received 164724744 bytes 185787.61 bytes/sec
total size is 247429232 speedup is 1.50
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(151 [generator=3.0.4]
Suse Linux Enterprise Server 11
Suse Linux Enterprise Server 10 - SP2
OpenSuse 11.1, KDE 4.1.3
OpenSuse 11.1, KDE 4.2
Why were some files not transferred as indicated by the error message above? How do I resolve this error?
Did it not show you the actual file names that it had problems with? Are you running this as a cron job, or straight from a command prompt?
Another question: are you trying to copy from different OS’s? For example, is the Web server Microsoft IIS and you’re copying to OpenSuSE Linux? Does one have Access Control Lists or some other form of security? There are known issues with “translating” file attributes between different OS’s.
This is probably just an access/permissions issue, but you need to post more info otherwise.
> rsync -avz -e ssh firstname.lastname@example.org:/srv/www/htdocs/ /srv/www/htdocs/
did you issue that command after an su to root?