Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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


Some bios and firmware support turning on at a certain time. Maybe cron was a way to simplify.


Just 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: