Beiträge von red-lichtie

    I meant to get back about this before but I forgot.


    Adding a script to "/etc/pm/sleep.d" was the solution with authshutdown installed.


    I have added a script called "01-set-wakeup" and set it executable.



    This gets called when pm-suspend is called and set the RTC to wake up my server at 22:00 local.


    At 22:04 my backup is started by cron and dirvish mounts my external USB drive, does an incremental backup and then unmounts the drive.


    It would be nice if enabling and setting the time was a standard part of the WOL-RTC plugin though.


    So I'm happy that my backup is now running automatically every evening.

    You didn't look at the options of rtcwake... There is an option "No - Don't suspend. Sets RTC…


    I'm sorry, I didn't realize that the rtc event would still happen doing it that way and now it also makes perfect sense what you said before about a cron job.


    I think that I shall try that out.


    I use drivish to make incremental backups and have that run 2 minutes after the scheduled wake up time.


    I'll give it a try this evening and let you all know how it works out.


    Thanks

    Calling rtcwake suspends the system to memory so a scheduled suspend isn't really going to give me the functionality that I need.


    As I said in my OP, I'm looking for a way to call my script instead of the standard suspend but I don't know my way around the pm-utils package to get this to work.


    What would be really cool is if the autoshutdown maintainer could add a "scheduled wake up at" option to do this out of the box.

    Before switching to omv I was using powernap to put my server to sleep when it was inactive.


    I start a backup up every night and I would like to continue doing that using the autoshutdown plugin.


    How to I get it to call my script or what script do I have to change to get my system waking up at a predetermined time as before?


    Here is the suspend script that I used to use: