views:

59

answers:

3

Is it possible to access or download my code that is running on Google App Engine? For instance, say my hard drive crashes and I have not saved my code on any kind of external repository. Is there any way to recover?

A: 

I can't find it now, but I remember reading a post where they were pretty specific about NOT being able to do that. The gist of it was that they were not a backup service and that you were responsible for backing up your own code.

There is a "datastore backup and restore" feature on the project roadmap though: http://code.google.com/appengine/docs/roadmap.html I've skimmed over a few posts where people talk about ways to backup the database now without that the official sanctioned feature implemented... of course your datastore isn't your code.

DutrowLLC
+4  A: 

No, it is not possible. You compile your code on your machine and ship up the compiled code. If you have a source repository, always make sure that you have a backup.

GAE does not have a mechanism for you to download your binaries, so reverse engineering them is not possible except from your own copies.

Of course you could always host your project on GitHub or SourceForge

Romain Hippeau
There is a library that makes it possible to download an app's source as a zipfile, if the library was included with the app. You're right that it's a bad idea, though, and that backing up one's code is a much better idea.
Nick Johnson
If you're using Python and running AppStats you can also see any file that's traced by AppStats during an RPC call. Just look for the file in the stack under 'RPC Call Traces' in the details of a request.
hwiechers
@Nick Johnson - What app is that? that could come in handy.
Romain Hippeau
@Romain http://www.manatlan.com/blog/zipme___download_sources_of_your_gae_website__as_a_zip_file
Nick Johnson