On Fri, Oct 31, 2008 at 6:16 PM, Bobby Gill <span dir="ltr"><<a href="mailto:bobbygill@rogers.com">bobbygill@rogers.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Home network has mythbox + desktop, with shares mounted both ways via NFS. I am trying to get rsync working so it will
backup my server's home+root to my desktop's backup partition. Here's the
error:<br><br><pre><font size="4">/media # sudo rsync -avzdp --progress --delete --exclude=/root --exclude=/var/tmp/kde* --exclude=/proc --exclude=/home --exclude=/media --exclude=/var/cache/pacman --exclude=/tmp/* --exclude=/lost+found --exclude=/var/backup --exclude=/mnt --exclude=/usr/man --exclude=/var/abs --exclude=/sys / /media/desktopseagate/backup/server/root/<br>
sending incremental file list<br>./<br>rsync: failed to set times on "/media/desktopseagate/backup/server/root/.": Permission denied (13)<br>.mythtv/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/.mythtv" failed: Permission denied (13)<br>
*** Skipping any contents from this failed directory ***<br>.qt/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/.qt" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>
bin/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/bin" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>boot/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/boot" failed: Permission denied (13)<br>
*** Skipping any contents from this failed directory ***<br>dev/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/dev" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>
etc/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/etc" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>lib/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/lib" failed: Permission denied (13)<br>
*** Skipping any contents from this failed directory ***<br>opt/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/opt" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>
sbin/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/sbin" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>srv/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/srv" failed: Permission denied (13)<br>
*** Skipping any contents from this failed directory ***<br>tmp/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/tmp" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>
usr/<br>rsync: recv_generator: mkdir "/media/desktopseagate/backup/server/root/usr" failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(541) [sender=3.0.4]<br>
/media #</font></pre><br>All mounted partitions via NFS both ways are fully read+writable, I can make dirs/touch files no sweat in shell. Why is the rsync not working (clearly due to permissions) ??<br><br>Thanks for any help fellas<br>
Bob</blockquote><div><br>I noticed that the rsync is running as root. As "root" user on the client, are you able to mkdir directories or touch files on the NFS mounted directory ? NFS servers by default do not allow write access to exported directories by "root" user on clients (user "root" typically gets mapped to user "nobody"). If you need write access as "root" user from the NFS client, the NFS server typically would have an option (like "no_root_squash" or "--maproot=root") while exporting the directory to allow this. If you're not already doing it, you might also want to restrict the NFS exported directory (on the NFS server) to only the clients from where you need access to them.<br>
<br>Also, when using rsync to transfer data between machines, a rsync server would be a good alternative to consider (instead of exporting directories using NFS)<br><br>-=Venkat=-<br></div></div>