Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Command line for WOL

Featured Replies

I have a separate NAS that is a portable backup (Synology).  it's mounted as a drive in UNRAID with unassigned devices.  The model I have does support WOL.

 

Is there a command I can add to my userscript for running a backup (uses Rsync) that would trigger the WOL?  simply running the script while the synology is asleep does nothing.

 

Thanks in advance for any advice.

Solved by SimonF

  • Community Expert
  • Solution
17 minutes ago, TODDLT said:

I have a separate NAS that is a portable backup (Synology).  it's mounted as a drive in UNRAID with unassigned devices.  The model I have does support WOL.

 

Is there a command I can add to my userscript for running a backup (uses Rsync) that would trigger the WOL?  simply running the script while the synology is asleep does nothing.

 

Thanks in advance for any advice.

Have a look at this post 

 

  • Author
21 hours ago, SimonF said:

Have a look at this post 

 

 

Thanks for this.   I'll do some reading and post further in that thread for help if needed.

 

Much appreciated.

  • Author
On 11/7/2024 at 12:48 AM, SimonF said:

Have a look at this post 

 

 

OK, got that to work and tested the etherwake command in a terminal screen, worked perfect so TY.

 

Last question:  It takes 1-2 mins for the NAS to fully wake up.  Do I need to have a "pause" occur in my userscript for the backup between etherwake, and the rclone commands?  It will automatically wait for a drive to spin up but not sure Rclone will not just register an error when it hasn't woken up yet.

What command would make it pause for 90 seconds between those commands?

 

  • Community Expert
1 hour ago, TODDLT said:

 

OK, got that to work and tested the etherwake command in a terminal screen, worked perfect so TY.

 

Last question:  It takes 1-2 mins for the NAS to fully wake up.  Do I need to have a "pause" occur in my userscript for the backup between etherwake, and the rclone commands?  It will automatically wait for a drive to spin up but not sure Rclone will not just register an error when it hasn't woken up yet.

What command would make it pause for 90 seconds between those commands?

 

Assuming it is a bash script sleep 2 where the number is seconds.

 

Yes I would pause to allow the system to start.

  • Author
2 minutes ago, SimonF said:

Assuming it is a bash script sleep 2 where the number is seconds.

 

Yes I would pause to allow the system to start.

So like this?  

 

#!/bin/bash

etherwake XXXXX
sleep 120
rclone sync '/mnt/user/Backup Items' '/mnt/remotes/UNRAID_BU_BACKUP/Personal Backup'
rclone sync '/mnt/user/Media' '/mnt/remotes/UNRAID_BU_BACKUP/Media'

 

Edited by TODDLT

  • Community Expert
1 minute ago, TODDLT said:

So like this?  

 

#!/bin/bash

etherwake XXXXX
sleep 120
rclone sync '/mnt/user/Backup Items' '/mnt/remotes/UNRAID_BU_BACKUP/Personal Backup'
rclone sync '/mnt/user/Media' '/mnt/remotes/UNRAID_BU_BACKUP/Media'

 

Yes

  • Author
15 minutes ago, SimonF said:

Yes

Thanks for the help, much appreciated.

 

Do I actually need the WOL for Services Plugin for etherwake to work?   

I installed WOL for Services, but not sure its actually needed since etherwake is a separate install.

  • Community Expert
3 minutes ago, TODDLT said:

Thanks for the help, much appreciated.

 

Do I actually need the WOL for Services Plugin for etherwake to work?   

I installed WOL for Services, but not sure its actually needed since etherwake is a separate install.

No etherwake is a standalone package. WOL for services allows you to start VM, LXC and Dockers on the system with WOL packets. Also allows restarts/shutdowns via WOLpackets also.

On 11/10/2024 at 9:33 AM, TODDLT said:

Do I need to have a "pause" occur in my userscript for the backup between etherwake

Probably better to do a conditional to continue when the system is responding.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.