rsync changes group owner to wheel

Status
Not open for further replies.

mvcad

Contributor
Joined
Feb 25, 2018
Messages
116
Hi all,
Why is that every time I use rsync command the group owner of destination folder gets changed to wheel?
it happens in either push or pull configuration.
My goal is to transfer the files from a synology nas to a freenas server.
This is what I've done so far:
1. Created a freenas user called rsyncbackup
2. Crested a dataset called test
3. Created a group called vectorstaff
4. Set rsyncbackup as owner of test and Vestorstaff as group owner of test
5.created a folder called backup under test (test/backup)

The permissions of backup folder before running rsync are these:
drwxrwxr-x 2 rsyncbackup VectorStaff 3 Aug 9 13:39 backup

after running rsync they look like these:
d--------- 2 rsyncbackup wheel 3 Aug 9 13:39 backup

any idea why? and furthermore, how can I avoid this situation?

TIA.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
any idea why? and furthermore, how can I avoid this situation?
Are you using cron (or what) to execute the rsync task and what user is running the task? How is the process being run is the question and which system is it running on?
 

mvcad

Contributor
Joined
Feb 25, 2018
Messages
116
Thanks Chris, I am running rsync on a commnad-line from putty from a windows machine, I ssh into the freenas as rsyncbackup,
this is command I am using:

rsync -av root@192.168.0.200:/volume1/SharedFolder/ /mnt/Vol8TB/test/backup/
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
The permissions of backup folder before running rsync are these:
drwxrwxr-x 2 rsyncbackup VectorStaff 3 Aug 9 13:39 backup
Where / how is that being set?
What are the default permissions for the dataset?
For example, if you have the dataset permissions set like mine:

upload_2018-8-13_20-14-36.png


The owner and group are set by for you when a new file is created.
 

mvcad

Contributor
Joined
Feb 25, 2018
Messages
116
The owner (User) is rsyncbackup and the owner (group) is vectorstaff. This is set in Freenas GUI as per yours, except that I set the permission types as Unix.
 

mvcad

Contributor
Joined
Feb 25, 2018
Messages
116
Actually the backup folder is nested under test. an the permission are set like this:
upload_2018-8-14_9-45-52.png
 
Status
Not open for further replies.
Top