Jump to content

Like the tittle says I'm looking for a way to set unraid to automatically sync a folder or a drive from my PC to my unraid. I don't want to use something that needs a program running in the background on my PC. I used a plugging to mount network drives to unraid so I could have handbrake watch a folder on it. So I would like something that works the same way and watches for a new file then copy's that to unraid for a backup but I don't want it to delete the file if I do on the drive on my pc. I'm sure this is simple but I'm new and have no idea how to do so and other places I have asked just say stop being lazy and just manually copy the files.

Thank for any advice in advance!

Link to comment
https://linustechtips.com/topic/1166349-unraid-file-sync-automation/
Share on other sites

Link to post
Share on other sites

Possibly you could create a share on your PC, and then use rsync and the user scripts plugin to sync it to your unraid. 

You could also just create a simple batch using robocopy, and then schedule it with task scheduler on your PC. 

 

Both would allow you to sync just the files that have changed. 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

Your computer would have to host a SMB share/folder that you give UnRAID permission to access. From there RSYNC could get it done.

 

Really though unless you're on a Domain with many many machines it's generally easier to just setup a program like FreeFileSync and a .bat file running in task scheduler on the client(s). This is usually how it's done in home setups. It'd be easier to setup and honestly makes more sense for the application.

Link to post
Share on other sites

As already mentioned above, you need to expose your files over SMB for UnRAID to be able to access these files and copy them over. After this one is done you can use any Linux-based tool that can grab the files from your SMB share and put them into a folder on UnRAID. Rsync, Freefilesync, Unison - dozens of solutions will do the job. Just run them at a regular manner and it will work. 

Unless you have a very special and specific case that requires such kind of approach I would rather stick to some sort of backup solution like RClone or Duplicati instead of regular file-based synchronization. This way you can keep some versioning of files which might be extremely helpful. Another option that backup software can provide is a cloud tier. Cloud storage can be very cheap or even free nowadays and having another copy somewhere else is a very good option because of multiple obvious reasons. Here is a nice overview of the mentioned solutions along with some others that hopefully might be of help https://www.vmwareblog.org/single-cloud-enough-secure-backups-5-cool-cross-cloud-solutions-consider/.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×