hus2020 Posted August 7, 2021 Share Posted August 7, 2021 I have some rclone mounts that need refreshing every day. To do this, I have to manually stop and start the array. How can I do this using userscript and cron? From the wiki, it looks complicated as stopping array requires to run multiple commands. How can I just simulate the same steps done by the webgui button when we hit Stop. Quote Link to comment
itimpi Posted August 7, 2021 Share Posted August 7, 2021 It IS complicated it is not something I have ever seen any user want to do under script control as a lot goes on behind the scenes during array stop/start. Is.there any reason you have to stop/start the whole array rather than just rclone and any associated mounts? That feels much easier to accomplish although even then I have no experience of the exact steps involved Quote Link to comment
hus2020 Posted August 7, 2021 Author Share Posted August 7, 2021 7 hours ago, itimpi said: I run a seedbox, which downloads media to my onedrive. Then I use rclone to mount the Onedrive storage to a unraid share and access all my media on plex. With the rclone script, I have set refresh time and all other flags, but newly downloaded media isnt updated unless I umoount and remount the the rclone share. The rclone mounting and unmounting is done via Usr Script and the trigger is Start of Array and Stop Of array. That is the reason why I was looking to do it. 7 hours ago, itimpi said: It IS complicated it is not something I have ever seen any user want to do under script control as a lot goes on behind the scenes during array stop/start. Is.there any reason you have to stop/start the whole array rather than just rclone and any associated mounts? That feels much easier to accomplish although even then I have no experience of the exact steps involved Quote Link to comment
itimpi Posted August 7, 2021 Share Posted August 7, 2021 15 minutes ago, hus2020 said: The rclone mounting and unmounting is done via Usr Script and the trigger is Start of Array and Stop Of array. That is the reason why I was looking to do it. Why not simply set it to be at a scheduled times which would be trivial to set up in User Scripts rather than array start/stop (or in addition to that). 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.