refinerycms icon indicating copy to clipboard operation
refinerycms copied to clipboard

Dump RefineryCMS Content

Open RobWu opened this issue 14 years ago • 13 comments

Would be great if it would be possible to dump/backup the content to the file system. f.e. creating yml or seed from the productive db..

RobWu avatar Dec 07 '11 09:12 RobWu

Call me old fashion but I still like doing backups at the db level so I'm -1 on this as I don't see any real benefit from this feature.

ugisozols avatar Dec 07 '11 09:12 ugisozols

The idea is also to dump the pages from one environment/server and import it on a other environment/server without copy the db.

No only production backup.

RobWu avatar Dec 07 '11 09:12 RobWu

Can't you just dump development db data and import it in production db?

ugisozols avatar Dec 07 '11 10:12 ugisozols

Yes. But I don't like the idea of that..

In my case I want to copy the content from the development env to the production server. Copy development db to prod. system is not really a good idea..

RobWu avatar Dec 07 '11 10:12 RobWu

Wait, so we're not talking just about db data? What counts as content? Can't you put that content in vc? Sorry for asking all of this but I just want to understand what are you exactly proposing :)

ugisozols avatar Dec 07 '11 10:12 ugisozols

Maybe my the work flow is different from yours.

Because I am responsible for the cms and the content I have done everything in the dev. environment. That means local the site is finished. Now I want to deploy the local site direct to production server with all local finished content.

RobWu avatar Dec 07 '11 10:12 RobWu

I could write seeds manually for the content, but it would be great if there is way to generate the seeds from the database.

RobWu avatar Dec 07 '11 10:12 RobWu

But those seeds wouldn't be any different than raw sql dumps...

ugisozols avatar Dec 07 '11 11:12 ugisozols

This would actually be very cool but very difficult. Heroku allows you to do this using heroku db:push which uses the gem 'taps'. However as Refinery is a Rails application I'm sure that many tools exist already to do this job of migrating data from development to production? Maybe we can harness one such tool?

parndt avatar Dec 12 '11 07:12 parndt

https://github.com/ludicast/yaml_db looks interesting..

RobWu avatar Dec 12 '11 09:12 RobWu

RobWu: I was going to mention yaml_db. It can be used independently of refinerycms. Good luck.

victorbueno avatar Dec 13 '11 19:12 victorbueno

For the record, I'm still not 100% certain that we should handle this process. The better case may be to provide a guide?

parndt avatar Dec 14 '11 16:12 parndt

Parndt: I think that database data migration is out of the scope of refinerycms. The guide is not necessary also.

victorbueno avatar Dec 14 '11 17:12 victorbueno