I'm looking to do some regular automatic backups from my Linux laptop using rsync. I always keep my NAS in Sleep (S3), so I made a script to:
- Wake on LAN
- copy data with rsync
- Put the NAS back to sleep
For the "putting the NAS to sleep", I simply write "mem" through ssh to /sys/power/state and that puts it to sleep.
Now my question: Is this safe?
I noticed when triggering the Sleep from mobile app or Control Center, it takes a bit of time to prep things, and after around 10-15 seconds, it goes to sleep.
When I do the /sys/power/state method, it goes (almost) instantly.
Is there anything I should know, or anything that I'm missing?
Thanks!