On Fri, Oct 31, 2008 at 6:16 PM, Bobby Gill <span dir="ltr">&lt;<a href="mailto:bobbygill@rogers.com">bobbygill@rogers.com</a>&gt;</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&#39;s home+root to my desktop&#39;s backup partition. Here&#39;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 &quot;/media/desktopseagate/backup/server/root/.&quot;: Permission denied (13)<br>.mythtv/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/.mythtv&quot; failed: Permission denied (13)<br>

*** Skipping any contents from this failed directory ***<br>.qt/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/.qt&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>

bin/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/bin&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>boot/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/boot&quot; failed: Permission denied (13)<br>

*** Skipping any contents from this failed directory ***<br>dev/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/dev&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>

etc/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/etc&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>lib/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/lib&quot; failed: Permission denied (13)<br>

*** Skipping any contents from this failed directory ***<br>opt/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/opt&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>

sbin/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/sbin&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>srv/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/srv&quot; failed: Permission denied (13)<br>

*** Skipping any contents from this failed directory ***<br>tmp/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/tmp&quot; failed: Permission denied (13)<br>*** Skipping any contents from this failed directory ***<br>

usr/<br>rsync: recv_generator: mkdir &quot;/media/desktopseagate/backup/server/root/usr&quot; 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 &quot;root&quot; 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 &quot;root&quot; user on clients (user &quot;root&quot; typically gets mapped to user &quot;nobody&quot;). If you need write access as &quot;root&quot; user from the NFS client, the NFS server typically would have an option (like &quot;no_root_squash&quot; or &quot;--maproot=root&quot;) while exporting the directory to allow this. If you&#39;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>