I've got a server with an external HDD, I download files to the main disk then transfer them over to the HDD for storage. I mostly do file management over WinSCP, but it's not possible to move files between disks - is there an easy way to setup a service/daemon to watch a directory on my main disk, and if it detects that said directory isn't empty, move the contents to the HDD? I'd probably want to check it maybe every thirty seconds, just unsure if a cron job or another method is the best.
Asked
Active
Viewed 86 times
2
-
1Related: Automatically copy incoming files to multiple folders then remove the source files – Raffa Jan 16 '23 at 13:04
-
3No need to reinvent the wheel - @Raffa has a nice solution, which is the closest to real-time you're going to get. – Artur Meinild Jan 16 '23 at 13:11
-
1Thanks, this is perfect! – amekyras Jan 16 '23 at 13:23
-
1Does this answer your question? Automatically copy incoming files to multiple folders then remove the source files – Kevin Bowen Jan 16 '23 at 15:19