[web2py] Re: recovering from crash

2014-02-10 Thread LightDot
Sure, shouldn't be complicated either, assuming your database definitions 
and the actual database structure is the same.

Restore your database and it's contents, restore the web2py code and then 
all that is left is to rebuild the web2py's database metadata. Take a look 
at fake migrations in the book: 
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=fake_migrate

Regards

On Monday, February 10, 2014 11:41:25 AM UTC+1, rif wrote:

 Hi guys,

 If I lost the content of datatbases directory can I restore a web2py 
 application having only the pg_dump of the application datatbase?

 -rif


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: recovering from crash

2014-02-10 Thread rif
Thanks a lot LightDot,

That was exaclty what I needed :)

-rif

luni, 10 februarie 2014, 12:56:38 UTC+2, LightDot a scris:

 Sure, shouldn't be complicated either, assuming your database definitions 
 and the actual database structure is the same.

 Restore your database and it's contents, restore the web2py code and then 
 all that is left is to rebuild the web2py's database metadata. Take a look 
 at fake migrations in the book: 
 http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=fake_migrate

 Regards

 On Monday, February 10, 2014 11:41:25 AM UTC+1, rif wrote:

 Hi guys,

 If I lost the content of datatbases directory can I restore a web2py 
 application having only the pg_dump of the application datatbase?

 -rif



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.