Hello I have a problem while synching between two NAS boxes with Linux. First NAS: group staff=50 (3.0.3pre1) Second NAS: groups ftp=50, staff=500 (rsync 3.1.1) I synched with -rptgo, without --numeric-ids. The expected result was that the items on the second group would be staff as well even with a different gid. However it looks like the 50 was taken literally and now all staff items are ftp items. 1. How could this happen? Is this expected, did I do something wrong? 2. How can I now synch the ownership correctly? I tried with -a, with --super, but so far the ownership is not synched. Thanks bye Fabi
At 08:30 11.05.2016, Fabian Cenedese wrote:>Content-Transfer-Encoding: 7bit > >Hello > >I have a problem while synching between two NAS boxes with Linux. >First NAS: group staff=50 (3.0.3pre1) >Second NAS: groups ftp=50, staff=500 (rsync 3.1.1) > >I synched with -rptgo, without --numeric-ids. The expected result >was that the items on the second group would be staff as well >even with a different gid. However it looks like the 50 was taken >literally and now all staff items are ftp items. > >1. How could this happen? Is this expected, did I do something wrong? >2. How can I now synch the ownership correctly? > >I tried with -a, with --super, but so far the ownership is not synched.I can now synch the group by using --groupmap=50:staff. Just doing --groupmap=ftp:staff or leaving it off doesn't change anything on the receiving side. However then I don't understand the default behaviour. Shouldn't that already have happened in the normal use case without --numeric-ids and --groupmap? Thanks bye Fabi
The only times it should use the group number instead of the name is if --numeric-ids is used or there is no group with the same name at the target end (possibly because /etc/group can't be read). Unless there was a bug in that old pre-release version that has been fixed. On 05/11/2016 02:30 AM, Fabian Cenedese wrote:> Hello > > I have a problem while synching between two NAS boxes with Linux. > First NAS: group staff=50 (3.0.3pre1) > Second NAS: groups ftp=50, staff=500 (rsync 3.1.1) > > I synched with -rptgo, without --numeric-ids. The expected result > was that the items on the second group would be staff as well > even with a different gid. However it looks like the 50 was taken > literally and now all staff items are ftp items. > > 1. How could this happen? Is this expected, did I do something wrong? > 2. How can I now synch the ownership correctly? > > I tried with -a, with --super, but so far the ownership is not synched. > > Thanks > > bye Fabi > >-- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: sanitarium.net PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <lists.samba.org/pipermail/rsync/attachments/20160511/d29fa9d3/signature.sig>