Backup and read projects

I don’t know why I’m having trouble, but I haven’t been able to backup my projects with the code from @dave1707. Can someone link me to an updated version of how to read and save projects with Dropbox?
Thanks in advance

@CamelCoder I have a new version that uses some new functions that are in the next version of Codea. You’re listed as a beta tester so you should have them if you have the beta version of Codea. See the link below. I got a new iPad and used this code to save 501 projects from my old iPad and install them on the new one. It took about 30 seconds to install them all.

https://codea.io/talk/discussion/8269/backup-options#latest

EDIT: Sorry for the mixup. This program will backup all of your projects, but will restore one selected project at a time. My other program will restore all of them at once.

@dave1707 this works for the most part, except I found the error, it only backs up projects without spaces, is there a fix to it

@CamelCoder I found that error when I wrote my updated program. Projects with spaces are in the backup file, but they don’t show when an extract is done. The fix is to replace the %g+ in "==(%g+)==" with .- in the functions showProjects and extractProjects so you have "==(.-)==" .

@dave1707 So, everything’s working, except it doesn’t save any of the shaders, sprites, sounds, music etc

@CamelCoder That’s correct. I wrote it only to backup the Codea projects. It was mainly done so that if I totally messed up one of my projects, I could easily get the code back. I wasn’t worried about the other stuff.

@dave1707 so, is there any way to save them?

@CamelCoder There is, but trying to save all that other stuff was more than I wanted to get into. If you go to the Codea home page and tap the gears in the upper right, then at the bottom right is an export projects tab. That saves everything as a zip file. The only problem is Apple won’t allow the Codea app to read it back in. So it can be done. If you want to write your own program to read a zip file, you can read the file and extract stuff. I’ll stick to using text files, it’s a lot easier.