What are the best tools for syncing files from my NAS to a Linux machine?

April 23, 2025 3 answers
Asked by attic hatch
Hey everyone! I'm trying to figure out a good way to sync a folder from my NAS (which is running Synology/Xpenology) to another Linux machine that I have access to. The goal is to make the syncing happen quicklyโ€”ideally, it should detect new files within a minute and transfer them just as fast as you'd expect from commands like cp or rsync. The Linux machine is directly connected to the NAS over the same LAN, so I can use SMB, NFS, or even rsync if I set up SSH access. This setup is primarily for Plex, as I've noticed that running it directly from the HDD is a bit sluggish. At the moment, I have another Xpenology instance handling this with Synology's software, but I want to simplify my setup by switching to a seamless Linux experience, possibly using a container on Proxmox. I'm considering using rsync with a SystemD timer, but I'm worried it might introduce delays when new files are added to the NAS. Also, I'm looking for a solution that can handle an influx of new files without becoming too traffic-heavy. Any suggestions or insights would be greatly appreciated, especially if you have alternatives that could help avoid some of the problems I'm facing. Cheers!

Answers

valise_72
You might want to check out Unison. Itโ€™s a solid tool for syncing files, but be aware that it doesnโ€™t automatically react to new files in real-timeโ€”you usually have to trigger it manually or set a timer. If you use Unison, would you opt for SSH, SMB, or NFS for connections?

-offstage: I hear you! I think Unison can be a bit of a hassle if you're looking for real-time syncing. But if you can set it up correctly, it might work for your file needs.

Reply to this answer
soft palate
SyncThing has been fantastic for my needs! Itโ€™s reliable, offers loads of options, and even has a community-built version for Synology. I think it would suit you well since you mentioned speed for Plex streaming.

attic hatch: Yeah, someone else suggested SyncThing too, and it does look promising! Iโ€™ll give it a shot and see how it goes.

Reply to this answer
~open to suggestions!
I suggest trying out incrond. It can help you launch processes based on filesystem events, like syncing files right after they're written. Just make sure the events are spaced out enough to prevent any issues.

attic hatch: Sounds interesting! I hope it can work well with my NAS setup. I'll definitely explore this option further.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions