4 ms·
Looks like you're quite clever actually, if you can get cron to run on a powered off unplugged machine. I think I'm missing something.
by BenjiWiebe 2y ago
Looks like you're quite clever actually, if you can get cron to run on a powered off unplugged machine.
I think I'm missing something.
- 8n4vidtmkvmk 2y agoJust power, not unplugged. It's simply 0 2 * * * /usr/sbin/rtcwake -m off -s 28800 # off from 2am to 10am "and unplugged" was referring to OP's setup, not mine
- alanfranz 2y agoSome bios and firmware support turning on at a certain time. Maybe cron was a way to simplify.
- bigiain 2y agoI use a wifi controlled powerpoint to power up and down a pair of raid1 backup drives. A weekly cronjob on another (always on) machine does some simple tests (md5 checksums of "canary files" on a few machines on the network) then powers up and mounts the drives, runs an incremental backup, waits for it to finish, then unmounts and powers them back down. (There's also a double-check cronjob that runs 3 hours later that confirms they are powered down, and alerts me if they aren't. My incrementals rarely take more than an hour.)