samba allow dot underscore


Recommended Posts

Hi.

 

I would like to allow ._* files on one share as when rsyncing to it for dackups files starting with an undrescore do not get copied as the temporary file that rsync tries to make gets blocked, and there are some libraries I use that have files with _ as their first character.

 

What is the best way to allow this in unraid? I have another server that doesn't block these but I have been testing unraid for my backup server.

 

Thanks.

Link to comment

Here is the contents of smb.conf
 

# configurable identification
        include = /etc/samba/smb-names.conf

        # log stuff only to syslog
        logging = syslog@0

        # we don't do printers
        show add printer wizard = No
        disable spoolss = Yes
        load printers = No
        printing = bsd
        printcap name = /dev/null

        # misc.
        invalid users = root
        unix extensions = No
        wide links = Yes
        use sendfile = Yes
        aio read size = 0
        aio write size = 4096
        # supposedly not needed anymore
        #allocation roundup size = 4096

        # ease upgrades from Samba 3.6
        acl allow execute always = Yes
        # permit NTLMv1 authentication
        ntlm auth = Yes

        # hook for user-defined samba config
        include = /boot/config/smb-extra.conf

        # auto-configured shares
        include = /etc/samba/smb-shares.conf

As you can see, the smb-shares.conf will execute after smb-extra.conf so any conflicting settings in smb-shares.conf will have precedence on those in smb-extras.conf.

Link to comment

I think rsync will create a destination file with same name as source file but prepends a '.' to the file name to make it "hidden". Then when transfer completes it performs a 'rename', thereby deleting previous copy of source file, replacing it with new copy.  I think if you can use the '--inplace' option it doesn't do this, instead it opens destination for write which deletes old file and new data is written to the file.

Link to comment
  • 2 weeks later...

I am not 100% sure I can modify the rsync commands as they are built into BackInTime but I will have a go and see if this is possible. It might be a configurable flag somewhere.

 

Otherwise doing the manual edit isn't a massive trauma as I don't reboot the server much anyway.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.