I have one website with modx installed to www.website.com/modx/ --- Keep in mind there are other Websites In Progress on this storage server. My issue is that I'm moving all this: templates, template variables, chunks, snippets, etc to another server that already has modx installed in it.

My first instinct is to go to phpMyAdmin and export the sql file and import them to the new website's server. However, an error occurred when I attempted to do this. It had found many duplicates in fields that were associated a PK (due to it being the same website just a redesign).

I don't have to go and dump the table of the oldsite and then upload the new sql file do i?

Please advise.

link|improve this question

38% accept rate
feedback

2 Answers

Not sure if it's best practice and assumes both sites are running the same modx revision but I've been able to in the past simply go to the the target server's modx manager page, clear the cache, kick any currently logged in users then log out myself, not just closing the window, after which proceed to the phpmyadmin page of the destination server, drop all the tables (with a backup of course), and upload the dump from the old location. You'll need to manually move any custom resources you have referenced in your chunks or templates to the new server of course.

link|improve this answer
feedback

Depending on what version of ModX you are running, you can try one of the following:

http://modx.com/extras/package/janitor

http://modx.com/extras/package/provisioner

http://modx.com/extras/package/packman

And yes do definitely clear cache, that will cause more headaches then necessary!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.