3.2. Importing and Exporting Data
3.2.1. Migrating Data 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
JBoss Enterprise BRMS provides a JCR-standard export and import feature for use when migrating from one database to another. Exported repositories are written to an XML file as defined by the JCR standard.
Warning
The Import/Export feature is not intended to be used as a backup solution and is not supported by Red Hat as a backup solution. Always use the backup system provided by the database vendor.
The following points should be considered when performing an import or export operation:
- When importing, all existing content in the database is removed.
- Export or import operations should only be conducted when the database is not in use.
- Performance is extremely dependent on both the size of the database and the memory available to the server. Importing is a very memory-intensive process.
- Repository version history is not exported and rules will have their Creation Date attribute re-set to the date on which they are imported.
3.2.2. Exporting the Repository 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Procedure 3.1. Exporting the Repository
- From the navigation panel on the left hand side of the BRMS User Interface select
. - Click Export.
The browser will download a zip file which contains the repository in an XML file.
Depending on the size of the repository, this operation can take some time.
3.2.3. Importing the Repository 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Importing a repository will replace any content in the repository with the contents of the XML file being imported.
Procedure 3.2. Importing the Repository
- From the navigation panel select
. - Select the XML file containing the exported data by clicking the Browse button and browsing the local filesystem.
- Click Import and select OK on the confirmation dialog.
After successfully importing the repository the browser will refresh to show the new content of the repository.
To rebuild the package binaries after importing a repository, select . This may be necessary if errors are occurring as a result of importing a repository from an older version of JBoss Enterprise BRMS.