I successfully mounted a Windows share folder by editing
/etc/fstab. Now I'm trying to
rsync Ubuntu folders to the mounted Windows share folder in Ubuntu system.
I'm using the command
rsync -av --delete /sourceFolder/ /Mounted cifs format windows share folder/. Everything works fine without the option for the permissions.
The copied file permissions follow the uid, gid, dir_mode options in
/etc/fstab file, not the rsync
Is there a workaround to preserve the file permissions when backing up? Or is my approach wrong fundamentally?