Inside a datasets all files are copying read only files and how to change full controll permissions using commands
-
Dear Team,
We have two freenas server. One server for production and another one server for backup server.
In between two freenas server are running rsync process for backup. In backup freenas servers , we assigned windows users with full controll permissions in each departments datasets. But, when rsync the copy files from production to backup server. All files & folder shows read only files & folder. We need to set permission recursively in every datasets to change read only files to full controll permissions using freenas shell >>> . kindly provide any commands for this issues ???Thanks
Ghanesan N -
I haven't looked into this specific request, but are you not using the -p flag with your rsync command to copy over the permissions?
-
Also you wouldn't normally give your users direct access to your backup.
I understand wanting to ensure the permissions are set so If you have to restore, you don't also have to restore the permissions, but this process sounds incorrect.
Your backup system should only be accessible to yourself and other administrators.
-
my rsync command is " rsync -rv --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume ..... if we will add flags -p directly on rsync scripts. if any impact existing data ?
-
how to change read only files to full control files using any freenas linux commands ?
-
Adding -p or --perms would only effect future operations.
-
@Ghani said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:
how to change read only files to full control files using any freenas linux commands ?
What do you mean?
-
rsync process running using scripts. if i edit the rsync commands and running rsync process means , if any impact happens ?
-
The impact would be your backup directory would have the permissions copied from the source directory.
-
any commands for changing whole read only files & folders through shell interface.
-
@Ghani said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:
any commands for changing whole read only files & folders through shell interface.
So you have the read-only flag set on your directories and files, and want to remove this flag from the existing backup. There likely is, but I don't know of a way off hand. @scottalanmiller or @JaredBusch probably know off of the top of their heads.
-
The --chmod is likely what you need, but you wouldn't want this running on every rsync operation. Since the goal is to mimic the permissions from the source directory.
-
using rsync -arzp command shows error operation not permitted ?
![alt text](image url)
-
Please repost the screenshot.
-
screenshot not copy on this forums ???
-
Seems to work for me, you can drag and drop the screenshot into the post window.
-
The command
rsync -arzp
is different from the command you posted aboversync -rv --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume
All you should need for future rsync operations to copy the permissions should be
rsync -rvp --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume
Or
rsync -avz --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume
-
From here:
rsync -avz foo:src/bar /data/tmp
This would recursively transfer all files from the directory src/bar on the machine foo into the /data/tmp/bar directory on the local machine. The files are transferred in lqarchiverq mode, which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer. Additionally, compression will be used to reduce the size of data portions of the transfer.
-
how to use "rsync -avz foo:src/bar /data/tmp command in my setup ? ...
-
use your rsync commands shows operation not permitted error displays