for that, i would go with the xml export and import functionality of
phpcr. the app/console offers you commands for that. you can manipulate
that xml in any way.
alternatively, the phpcr-shell should offer a good way to do simple
refactorings like rename a class. it offers update statements. this
probably does not scale to large repositories, as the update happens in
php code and not database level, but for developping and a repository
with a couple of hundred documents i assume this will work.
cheers,david
On 04.12.2014 15:58, Bruno Reis wrote:
> Thanks Lukas.
>
> In fact now I'm looking for the most flexible thing that allows me to
> refactor some types and other stuff like that.
>
> 2014-12-04 10:53 GMT-02:00 Lukas Kahwe Smith <
sm...@pooteeweet.org
> <mailto:
sm...@pooteeweet.org>>:
> <mailto:
bruno....@gmail.com>> wrote:
> >
> > Hi all,
> >
> > I'm working on a cmf project here and I'm starting to put some
> data online. What is the best "content backup" strategy? Should I
> make a db backup? Or maybe dump some structured phpcr content somehow?
> >
> > I might be changing some classes and hierarchy and I'd like to
> have the most flexible data dump. Maybe some kind of yml I can edit.
> >
> > My actual dev approach is to have all the data on fixtures, but
> soon the client will start to edit it online. So, what do you recomend?
>
> Doing an XML dump into the PHPCR/JCR xml format is one way to ensure
> you get a consistent backup.
> That being said, depending on what persistence layer you use, you
> have other options: ie. if you use Jackrabbit with the XML store,
> you can use system that ensure a consistent on disc backup. If you
> use an RDBMS you can use whatever it offers.
>
> regards,
> Lukas Kahwe Smith
>
sm...@pooteeweet.org <mailto:
sm...@pooteeweet.org>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
symfony-cmf-us...@googlegroups.com
> <mailto:
symfony-cmf-users%2Bunsu...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
symfony-cmf-us...@googlegroups.com
> <mailto:
symfony-cmf-us...@googlegroups.com>.
--
Liip AG // Agile Web Development // T
+41 43 500 39 80
CH-8005 Zurich // PGP 0xA581808B //
www.liip.ch