Platform: QNAP NAS (439-U-RP) (dual core x86 / Linux kernel 2.6.33.2)
Source: sourceA: RAID-1 array, formatted EXT4
Target: targetB: NTFS (Paragon commercial NTFS driver) USB drive
rsync args: (-a --delete --stats --numeric-ids)
rsync version: 3.0.6 (tried 3.0.7 also)
LM: Local Machine

Given a 'sourceA' folder (/share/MD1_DATA/sourceA) with directory
ownership of:
  owner: LM.admin
  group: LM.administrators
  permissions: 777

The 'sourceA' directory contents has files and folders in it. The
original objects have ownership based on SAMBA Domain ID mapping
(idmap). For simplicity sake:
  Files and folders have:
    owner: LM.admin
    group: Domain.GroupA

Furthermore:
sourceA\sub1 directory: ownership similar to it's parent, except it
has a different ownership ids:
    owner: LM.admin
    group: Domain.GroupB
    permissions: 777

Issue: When I perform the rsync command (options above):

1) Files in the targetB directory receive the 'sourceA' folders
ownership. I.e the files in this directory receive (admin,
administrator) ownership, regardless of their original
ownership(admin,Domain.GroupA).

2) Files in targetB have their permissions changed from 777 to 555.

3) Directories in the targetB directory are unaffected.  Their ownership
and permission information is retained.

4) Sub-directories of targetB (and their contents) retain their
original ownership and permissions.  I.e. sourceA\sub1\ABC.xls
retains it's original ownership/permissions.

5) If I format the target USB drive with EXT3/4 and use the same
rsync arguments, the ownership and permission of objects transfer
correctly.

Question: What would you suggest I do to determine the root cause of
the failure to transfer ownership/permissions of files in the base
target directory?  I did try two different rsync versions (3.0.6 is loaded
on the device, but I pulled in the ipkg version of 3.0.7). No difference.

Appreciate any thoughts you might have.

Dave
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to