Hi, I have had these moments to. Luckily I work on a Mac, which comes with Time Machine. Time Machine enables me to recover web2py applications easily.
Furthermore, I save myself a lot of hassle by packing apps that are more or less working versions of an application and saving them outside web2py in a packedApps folder. Within web2py it did help me to have multiple db.py files: db.py, db_00_auth.py, db_01_tables.py etc. I also try to keep my applications small, e.g. I have a b2c, b2b, cms, crm and demo application, instead of an init application containing a b2c, b2b etc controller. I have been searching for these kind of best practices myself, in order to make developing and maintaining applications easier, up til now it's been a matter of trial and error. Kind regards, Annet.