Jump to content

Running User Script on other Unraid Server via SSH


Recommended Posts

Hi

 

My "Local" NAS is Unraid, as is my "Remote"

 

After my Backup UserScript runs on Local, offloading its files to Remote.

 

I would like it to trigger a userscript on the remote unraid machine, would will do the following.

 

Run Mover, Offload Files off-site, shutdown.

 

I have everything working, although for some reason I cannot run the userscript on the remove server, from the local server.

 

I am currently trying the following command

 

ssh root@REMOTEIP 'bash -s < /boot/config/plugins/user.scripts/scripts/test'

 

It connects fine as this shows in the log on remote, but the user script on the remote machine is not triggered.

 

The parth of the user script is from the userscripts plugin on the remote server.

 

Once the command has been figured out, I would also like to know how to run that without having to enter a password.

 

Any help would be very much appreciated 

 

 

 

 

 

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...