What are the best tools for syncing files from my NAS to a Linux machine?
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
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?
Reply to this answer
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
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.
-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.