Jump to content

CSUM Loop2 error


Go to solution Solved by JorgeB,

Recommended Posts

Posted (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 by weirdcrap
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.

×
×
  • Create New...