I would like to have something that logs whenever a Save session occurs and gives the size in bytes, whether the Save button is selected
or on reboot/shutdown it is asked.
This is somewhat something that can give me the format I want.
du --time -sk /initrd/mnt/dev_save/dpupbw6410.0.7frugal/dpupbw64save | awk '{print strftime( "%Y-%m-%d %H:%M:%S",systime(),$2), " " $1}' >> Save.log
format:
2024-08-23 14:12:41 899692
How could I do this?
Thanks