December 22, 20178 yr I am looking to backup some shares from my server to a usb drive which I will connect as an unassigned drive to the array. How can I cron a script to run automatically and copy the data from the array to the drive? I have a script ready but I am just not share where to copy it for unraid to execute it and how to cron it like I normally would on a linux machine. Any help would be appreciated. Thanks.
December 22, 20178 yr Unassigned Devices can run a script whenever you plug in the drive For scheduling, use the user scripts plugin
December 22, 20178 yr Author Oh awesome! thank you so much. This is exactly what I was looking for. I have run into just one hitch though. I want one line of the script to complete first before it moves to the next. For instance I want share A and B to sync using rsync before I empty Share A to the usb backup. In ubuntu, I use "wait %%" between rsync jobs to achieve that but that command is somehow messing up unraid and its not running the script. Any suggestions?
December 22, 20178 yr If you're not running rsync as a daemon then it should finish the job before carrying on to the next line in the script
Archived
This topic is now archived and is closed to further replies.