permissions changed by rsync over nfs?

Morgan Read mstuff at read.org.nz
Mon Mar 21 04:06:38 MDT 2011


Hello wonderful rsync

I have a little problem...

I sync a file system with this command:
rsync -avzAXH --filter="-r *.jpg *.opml *.opml.backup *.m3u"
--delete-after --exclude=MP3s /home/Music/ /misc/bigdisk.mythtv.lan/Music

/misc/bigdisk.mythtv.lan is an nfs mount mounted by autofs.
In /etc/auto.misc I have for /misc/bigdisk.mythtv.lan:
bigdisk.mythtv.lan	-fstype=nfs4	192.168.1.105:/bigdisk

For /bigdisk I have in /etc/exports on 192.168.1.105:
/NFS4exports
192.168.1.0/255.255.255.0(rw,sync,nohide,no_subtree_check,no_root_squash,fsid=0)
/NFS4exports/bigdisk
192.168.1.0/255.255.255.0(rw,sync,nohide,no_subtree_check,no_root_squash)

My little problem is that with the above rsync command this file, for
instance:
/home/Music/FLACs/Billy_Bragg/Back_to_Basics$ ls -al
01-billy_bragg-the_milkman_of_human_kindness.flac
-rw-rw-rw-. 1 morgan morgan 16950902 2010-03-07 17:36
01-billy_bragg-the_milkman_of_human_kindness.flac
Becomes this file:
/misc/bigdisk.mythtv.lan/Music/FLACs/Billy_Bragg/Back_to_Basics$ ls -al
01-billy_bragg-the_milkman_of_human_kindness.flac
-rw-------. 1 4294967294 4294967294 16950902 2010-03-07 17:36
01-billy_bragg-the_milkman_of_human_kindness.flac
Which is this file on 192.168.1.105 (mythtv.lan):
[root at mythtv Back_to_Basics]# ls -al
01-billy_bragg-the_milkman_of_human_kindness.flac
-rw-------. 1 1000 1000 16950902 Mar  7  2010
01-billy_bragg-the_milkman_of_human_kindness.flac

Note the change in permissions...  Does anyone have any idea where/how
to change this so the permissions stay the same?

Many thanks,
M.
-- 
Morgan Read
NEW ZEALAND
<mailto:mstuffATreadDOTorgDOTnz>

Confused about DRM?
Get all the info you need at:
http://drm.info/


More information about the rsync mailing list