weirdcrap Posted April 29 Author Share Posted April 29 (edited) 7 hours ago, itimpi said: Just had a quick look at the code and it appears that there IS a check on whether the array is already started so unless that check is faulty in some way the backup process will not run without the array started. I figured it out. It's this script. It's set to run nightly and backup the usb to dir="/mnt/user/CommunityApplicationsAppdataBackup/usb/". I'll see if I can figure out how to add a check for if the array is started or not. EDIT: I can just throw this at the front. tested it on my home server and it works, no execution if the array is stopped. ls /mnt/disk[1-9]* 1>/dev/null 2>/dev/null if [ $? -ne 0 ] then echo "ERROR: Array must be started before using this script" logger "ERROR: Array must be started before using this script" exit fi Edited April 29 by weirdcrap 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.