# Automatic backup on Mathematica

When there’s a power outage and I’ve done a lot of work on Mathematica, I lose all the informations. Is there a setup on Mathematica to make an automatic backup. Knowing that on "wolfram cloud" does it. Thank you, you will save me!

• – Jason B. Nov 21 '20 at 14:27
• Another thing you can do is save frequently and at the same time use an app that makes separate copies each time you do save. On macOS, the app Forever Save 2 does that. – murray Nov 21 '20 at 22:05
• @Jason B Thank you for me and all those who had the same problem. I never see these options, I think their location on the menu format is wrong. It would state on the File menu or Evaluation, I would have seen them. Anyway thank you very much. – Reda.Kebbaj Nov 22 '20 at 5:33
• I think you'll have problems with that. Often, when making changes to a notebook, you don't want to save them until you're sure they are what you want; not infrequently, just easier to start over from the point of last save. I personally have found it most useful to simply save my work periodically during the day and usually I'll do so with a new file name. – Dominic Nov 22 '20 at 9:07
• @JasonB. Your comment should be an answer. Alternatively, this question can be seen as "answered in the documentation." – Anton Antonov Nov 22 '20 at 13:58

Format       Option Inspector                  Show option values : Global Preferences                  + NoteBook Option                     .....File Optiins   x NotebookAutoSave True.                     Apply.

My problem was that I started a job overnight. In the morning I discovered that the power outlet was not properly engaged on my laptop, it discharged itself by losing the program and even the memory variables that I had calculated. So much the better for me, it will teach me!

I made a small export program and I’m going to use a working copy in automatic.

Mylist = {1, 2, 3, 4}; fname =
FileNameJoin[{"C:\\tmp\\", "tmp.dat"}]; Export[fname, Mylist];


after for recover lost variable :

Mylist = Flatten[Import["C:\\tmp\\tmp.dat", "Data"]];Mylist