rsync to cifs mount but preserve permissions
Posted
by
weberwithoneb
on Super User
See other posts from Super User
or by weberwithoneb
Published on 2011-06-22T18:21:33Z
Indexed on
2011/06/23
16:25 UTC
Read the original article
Hit count: 259
I'm backing up a linux server to a windows share. I'm currently mounting the windows share with cifs and using rsync for incremental backups. File permissions and ownership are not being preserved, as should be expected after reading this samba document:
The core CIFS protocol does not provide unix ownership information or mode for files and directories. Because of this, files and directories will generally appear to be owned by whatever values the uid= or gid= options are set, and will have permissions set to the default file_mode and dir_mode for the mount.
How can I achieve my goal of preserving unix file permissions while writing to a windows share? Is there another network file system that would allow me to do this?
Thanks.
© Super User or respective owner