File path for logging cronjobs

I have the issue with lost network connections, e.g. I loose the network connection to my NAS every 2 to 3 days. Only reboot helps me at the moment.
So I want to have a cronjob running on the NAS that monitors my network connection (ping the router) and log the response (so at least I see if the system is staying alive or halted and have a timestamp). But a reboot is restoring (=removing) all files I used in the path’s:
Where should I place the cronjob and the log-file to remain?

Hello there,

I have not tried this, let’s see if another user can share some tips on information on this matter.

I found some information in the forum for the Pro series:
Seems to be valid for the My Cloud Mirror as well at first sight, I also found the /dev/ubi0_0 and xmldbc also has the list of cronjobs.
I’ll work my way through the other thread…

So from the thread mentioned, the following commands allow to mount the (supposed) master-copy of the system:
# mkdir /tmp/ubifs_flash
# mount -t ubifs /dev/ubi0_0 /tmp/ubifs_flash
# cd /tmp/ubifs_flash
# ls -l

Not forget to unmount in the end:
# umount /tmp/ubifs_flash