November 7, 20241 yr 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.
November 7, 20241 yr 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
November 8, 20241 yr 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.
November 10, 20241 yr 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?
November 10, 20241 yr 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.
November 10, 20241 yr 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 November 10, 20241 yr by TODDLT
November 10, 20241 yr 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
November 10, 20241 yr 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.
November 10, 20241 yr 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.
November 11, 20241 yr 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.