Syncing files hidden

I’m using Syncthing in a protainer Docker container on an Ubuntu VM (in Proxmox) to sync files from my Windows 11 desktop to a TrueNAS SMB share mounted via CIFS.

smb mount-

//192.168.1.4/family_share /mnt/family_share cifs username=prox_mb,password=TworkKlovers,uid=3002,gid=545,iocharset=utf8,vers=3.0 0 0

syncthing yaml-

> ---
> services:
>   syncthing:
>     image: lscr.io/linuxserver/syncthing:latest
>     container_name: syncthing
>     hostname: syncthing #optional
>     environment:
>       - PUID=3002
>       - PGID=545
>       - TZ=Asia/Colombo
>     volumes:
>       - /home/prox_mb/docker-compose/syncthing:/config
>       - /mnt/family_share:/data
>     ports:
>       - 8384:8384
>       - 22000:22000/tcp
>       - 22000:22000/udp
>       - 21027:21027/udp
>     restart: unless-stopped

Issue: When Syncthing syncs files from Windows, they appear as hidden files when viewed over SMB on other devices. These files are not hidden on the original Windows source.

When files are copied to the network share it correctly copies back to my Windows original folder, no problem

Sync Extended Attributes and Send Extended Attributes are allready disabled in Syncthing (:white_check_mark:)

How to make sure new files synced by Syncthing are never hidden on the TrueNAS SMB share?

Maybe the same problem as https://forum.syncthing.net/t/syncthing-on-samba-and-hidden-dos-bit-issue/17931? Also, if you search the forum for “smb hidden”, you will find some other topics discussing the issue.

2 Likes

I have this EXACT same setup and just ran across this issue. The solution is to go into the Syncthing Web UI on your Ubuntu box, select the gear icon > Advanced. Navigate to the folder in question and then check the box next to “Disable Sparse Files”. You can’t set this during normal folder setup so I just set the folder up paused until I can go in and set this setting. I’m not sure why this works as it still creates the .tmp files that are hidden and then renames them, but it does!

1 Like

:flushed_face:

2 Likes

Thank you changing the settings did work. :smiley:

Thank you. I looked at the post and read it. I am using truenas SCALE, there is no way to change the auxiliary parameter to *hide dot files = no*.

TrueNas forum about this

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.