rsync: How NOT to preserve permission?
Hi all,
/mnt/windowsResrc is the mount point for a NTFS partition. Hence, all files and directories on it has permission 555. /mnt/windowsResrcBak is the mount point for a VFAT partition. It is mounted with umask 0022. Now when i do this, Code:
rsync -vrtL --delete /mnt/windowsResrc /mnt/windowsResrcBak Why is this so? Even more strange (to me), when i umounted /mnt/windowsResrcBak, and then mounted it again with umask 0022, the permissions of 555 for all its files and directories still remained! I had this understanding that VFAT does not have the ability to persist ownership and permissions, and that these things are "artificially" set when we mount the filesystem using the specified "-o uid=xxxx,gid=xxxx,umask=xxxx" option. But seems like my understanding was totally off? TIA and Regards, Edwin |
For read/write on a FAT32 I normally use umask=0. Your understanding is not off AFAIK. FAT32 has no native permission structure and linux temporarily grafts one on through the mounting options you pass or your fstab entry for the partition.
|
Quote:
Thanks and Regards, Edwin |
All times are GMT -5. The time now is 07:33 AM. |