Inside a datasets all files are copying read only files and how to change full controll permissions using commands
-
@scottalanmiller said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:
p, --perms
This option causes the receiving rsync to set the destination permissions to be the same as the
source permissions. (See also the --chmod option for a way to modify what rsync considers to be
the source permissions.)Dear Team,
Based on our discussion , i using below rsync commands ,
rsync -rvp --stats --delete /mnt/testvol/ [email protected]::test
rsync -avz --stats --delete /mnt/testvol/ [email protected]::testrsync -arzp --stats --delete /mnt/testvol/ [email protected]::test
source : /mnt/testvol/
destination : /mnt/testvolbkp/ = freenas module name is "test"Note : In source server zpool is " testvol" . I assigned permissions on testvol is windows permissions [ VMWARELAB\Administrator] and [ VMWARELAB\domain admins ] .
In destination server zpool is " testvolbkp" . I assigned permissions on testvol is windows permissions [ VMWARELAB\Administrator] and [ VMWARELAB\domain admins ] . And created rsync module name is "test" login is user : root /wheel.
For your reference, i attached screenshots.
))
-
@Ghani said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:
rsync -rvp --stats --delete /mnt/testvol/ [email protected]::test
rsync -avz --stats --delete /mnt/testvol/ [email protected]::test
rsync -arzp --stats --delete /mnt/testvol/ [email protected]::testI have a feeling you didn't read what I posted. All three of these do overlapping things. r, v and p are inclusive in a like I showed above. So you are testing the same thing over and over again. Why not stick to avz?
-
Dear Friend,
I have used
rsync -avz --stats --delete /mnt/testvol/ [email protected]::test this command. Remains the same error comes.I attached screenshot for your reference.
-
@Ghani Are you sure that all the same users and options exist at the other location?
-
Yes ...
I created datasets with same name and assigned same windows permissions in both source and destination freenas. Source server is production server.
Destination server is backup server. using rsync tools for backup.Friends ... i have doubt ?? , we assigned windows user permissions in all datasets. But we using rsync with root user login .. it happen any issue for permission transfer ?
-
Try adding -AX to it as well. X is for the extended attributes.
-
rsync -AX --stats --delete /mnt/testvol/ [email protected]::test like this ???
-
Add AX to what you had before.
-
rsync -avzAX --stats --delete /mnt/testvol/ [email protected]::test like this ??? correct ?
-
Dear Friend ... same error happen again
-
@Ghani said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:
rsync -avzAX --stats --delete /mnt/testvol/ [email protected]::test like this ??? correct ?
Yes. That's what I was hoping for.
-
@Ghani so the question is... why would you not have permission on the second host?
-
Already we set as same in all windows permissions in both source and destination created datasets. Then how ?