How to take backup of a notebook and export it automatically every each 5 minutes?


I want to let Mathematica automatically make a backup of an active notebook and export it to somewhere else (something like Wolfram Cloud or Google Drive) frequently.

"frequently" means whatever it is convenient, like "every 5 minutes", "every time the user manually saves it by Ctrl + S", and so on.

Is there any way to do it? I use Mathematica version 12.0 on Windows 10.

Any information would be appreciated.


I’ve experienced losing the edit on my notebook before by an inevitable accident. I mistakenly evaluated the cell which included infinite loop and I had to force stopping Mathematica from task manager, because it froze. The next time I launched Mathematica and opened the notebook, even my edit I did save by Ctrl + S before the infinite loop started was somehow lost. I want to avoid that by frequent backup and I want to confirm it by automating it.