Creating Permanent Scripts in Terminal after reboots


ds679

Recommended Posts

Everyone - I've tried to RTFM and couldn't find the answer/direction (if you find it - please just provide a link, thx).

I've created a few scripts to help automate file moving on my UnRaid servers.  I'm a CLI kinda guy and used the 'Terminal' to do so...but find that my user directory keeps getting erased between reboots.  Can someone help me to find 'permanence' for scripts/files in the user (i.e. Root) directory?

Thanks in advance - dave

Link to comment

Everything except files on your array drives or cache drive or flash drive is reset upon reboot, since unraid runs from ram. The flash drive file system does not allow for proper file permissions though.

 

Have you looked at the User Scripts plugin? That may only be for parameterless scripts, but it's worth a look.

 

Another easy way is for you to store the scripts on an array drive and add that directory to PATH, such as /mnt/user/scripts. This way is easier than copying from your boot flash drive and having to chmod them to correct permissions.

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.