thanks, thats perfect, and i have just noticed that if you export the app as a tar then the data.yml is already there. now i just know what to do with it.
On May 6, 10:11 pm, Kamilion <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 6:02 AM, elk_ <[EMAIL PROTECTED]> wrote: > > hi, i was going to be updating one of my apps to a newer version and > > there are just so many changes all over that its best if i just > > replace the entire codebase. The thing is i would like to do this > > dependent of the database, and so far i have not found a way to export > > the entire db. > > Pretty easy. > Open up the rake console from the gear menu, and run: > db:data:dump # Dump contents of database to db/data.yml > db:data:load # Load contents of db/data.yml into database > > after a db:data:dump, you'll find a data.yml file in your /db/ directory. > Download a copy of it, and hack away. > > To restore, simply place data.yml into the /db/ directory, pop open > the rake console, and run > db:data:load. > > For more handy rake tasks, try "--tasks" from the rake console. > > Good luck! > > -- Kamilion > "Never feel stupid for asking questions, feel stupid for ignoring answers." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
