ozkhan1 Posted December 22, 2017 Share Posted December 22, 2017 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. Quote Link to comment
Squid Posted December 22, 2017 Share Posted December 22, 2017 Unassigned Devices can run a script whenever you plug in the drive For scheduling, use the user scripts plugin Quote Link to comment
ozkhan1 Posted December 22, 2017 Author Share Posted December 22, 2017 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? Quote Link to comment
Squid Posted December 22, 2017 Share Posted December 22, 2017 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.