I have a backup script that is run each night. If my (Linux-) host is suspended it is woken up by another host before the script runs.
I would like to be able to suspend my host again after the backup is finished, but only if it was woken up to run the script. If it was running before, I want to leave it running.
Is there any way I can get the information when the host was last woken from suspend-to-ram?