Azzera filtri
Azzera filtri

App Designer - recover an overwritten app

8 visualizzazioni (ultimi 30 giorni)
Aleksandar Ritan
Aleksandar Ritan il 23 Gen 2021
Commentato: Adam Danz il 11 Feb 2021
While working on two of my apps last night, I accidentally overwrote one of them with another. I didn't notice it until this morning when I opened both apps and the same app opened. Whatsmore, the app that was overwritten took at least 5 days of work, while the app that remained took like 2 hours. Is there a way to restore an overwritten app?
  7 Commenti
Aleksandar Ritan
Aleksandar Ritan il 11 Feb 2021
@Adam Danz I've set up Dropbox and it's perfect for this project. There's one problem I'm having though. Matlab can't delete temporary folders created inside the Dropbox folder, nor can I save files from within matlab to the dropbox folder. How can I give Matlab the permission to modify the Dropbox folder?
Adam Danz
Adam Danz il 11 Feb 2021
Crap.... now that you meniton it, I do recall these problems between Matlab and Dropbox.
Temp folders
What function is creating the temporary folders? Usually temporary folders and files don't need backed up and can be stored on your local disk. Matlab's tempdir function returns the name of temporary dir Matlab uses (see how to change temp dir). Mine is 'C:\Users\name\AppData\Local\Temp\'.
Saving files
Saving files to the dropbox folder is a bigger issue. I don't have dropbox on the machine I've been using lately so I can't test it.
Workarounds
Well, you could try a different cloud service. I've used OneDrive and GoogleCloud but I forget if they offer version control. I also use redundent backup services on a server and on a hard drive. GitHub is a main player in version control, too.
I found this Tweet (first time I've used twitter to reference Matlab advice) suggesting to toggle the Dropbox syncing state when using Matlab and now I recall that this is what I did as well. Pro: it solves the problem. Con: If wont' backup your files until you turn the sync back on.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su File Name Construction in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by