Linking "unstructured files", how to exclude files with pattern?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Unfortunately for policies of the customer, we have to link unstructured files with delphix user whereas the owner of that files on the source is a different user. Delphix user and the owner share the user group and therefore all files that have read permission on the group can be rsync-ed.However there are files with read permission only for the owner (no read permission on the group) and so the rsync fails when it encounters these files.
These files are not known in advance, these files are generated dynamically, however they have name with a known pattern.
I know there is no wildchar or regular expresssion in the excluded files list. However I'm wondering if someone found some work-around to come out with this issue.

Thank you
Gianpiero
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,420 Points 10k badge 2x thumb
Hey Gianpiero, it seems the best way to solve this is for the customer to set the default umask for the file owner so that all the new files are created with the group +r attribute. The typical umask for this is 027 (u+rwx, u+rx, o-nothing)
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Thank you Adam for your prompt reply. However the customer doesn't want to add read permission on the group. These files shouldn't be copied by rsync, the linking process should escape these files. In other words, it's correct that Delphix Engine warns with error messages that these files are not copied, but these errors shouldn't block the linking process. No errors, but warnings, for this situation and for this customer.

Regards.
Gianpiero 
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,420 Points 10k badge 2x thumb
G, I am looking into this for you.
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Thank you