USB backup script


ozkhan1

Recommended Posts

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. 

Link to comment

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?

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.