innobackupex create files with defferent permissions

Hi!

I use NFS on my NAS fileserver for create backups with innobackupex from my MySQL 5.7 in Linux Ubuntu 14.04.

If I use mkdir or touch commands in Linux with mounted NAS:

  1. folders has 750 permissions (read&write&execute by owner, read&execute by group)
  2. files has 660 permissions (read&write by owner, read&write by group)
    It’s OK, but I need write for group in bash scripts.
    So I create folders with specific permissions:
    mkdir -m 770 -p /mnt/dir

But if I use innobackupex command with mounted folder:

  1. folders has 750 permissions (read&write&execute by owner, read&execute by group)
  2. files has 640 permissions (read&write by owner, read by group)
    It’s not OK, because I really need write by group!

Why files and folders from cli innobackupex creates with these permissions?
How to fix it?

I have the same situation as described here:
https://www.linuxquestions.org/quest…eshare-897122/

But I use ext4, not ext2.
I’m still looking on NFS ACL solution… and still can’t understand why innobackup creates files with different permissions.

p.s. StackOverflow question created:
https://stackoverflow.com/questions/35646888/nfs-different-permissions-on-files-and-folders