Last active
March 19, 2019 14:46
-
-
Save alexander-schranz/36a7e79674d1d201bfc95360a711c3c6 to your computer and use it in GitHub Desktop.
jackrabbit-phpcr-export-import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Export | |
| bin/adminconsole doctrine:phpcr:workspace:export --path /jcr:versions versions.xml | |
| bin/adminconsole doctrine:phpcr:workspace:export --path /cmf admin.xml | |
| bin/websiteconsole doctrine:phpcr:workspace:export --path /cmf website.xml | |
| # In some cases you maybe need to create the phpcr node types and remove then the exist nodes before the import: | |
| bin/adminconsole sulu:document:init | |
| bin/adminconsole doctrine:phpcr:node:remove /cmf | |
| bin/websiteconsole doctrine:phpcr:node:remove /cmf | |
| bin/adminconsole doctrine:phpcr:node:remove /jcr:versions | |
| # Import | |
| bin/adminconsole doctrine:phpcr:workspace:import -p / admin.xml | |
| bin/websiteconsole doctrine:phpcr:workspace:import -p / website.xml | |
| bin/adminconsole doctrine:phpcr:workspace:import -p / versions.xml | |
| # alternative to versions import and export you can mark all phpcr migration as executed with: | |
| bin/adminconsole phpcr:migrations:initialize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment