How do I let my server turn itself off and on with cron when it uses an lvm encrypted disk?

0

I once had a ubuntu server set up (a minecraft gameserver for my little brother) and to save on electricity and to not make so much noise, it shut itself down in the evening and then turned back on in the morning using rtcwake. My newly set up server has a LUKS encrypted disc, and for now I had to manually run cryptroot-unlock to get it to fully boot up, is there a reasonable / secure way to make this process automatic so it can be combined with rtcwake to once again save electricity?

Johannes Weitnauer

Posted 2019-10-20T22:28:48.703

Reputation: 1

Not sure there is an affordable solution to this. The general idea is that encryption is a defense in case stolen hardware, much more likely to happen on desktop/mobile devices. So 1) what are you defending against, and 2) if there is a way to achieve automatic decryption, how do you protect that against the same threat? – xenoid – 2019-10-21T08:22:02.137

No answers