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!
3 Answers
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.
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.
Yeah, someone else suggested SyncThing too, and it does look promising! I’ll give it a shot and see how it goes.
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?
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.
Sounds interesting! I hope it can work well with my NAS setup. I'll definitely explore this option further.