jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "BackupAndMigration" by ThomasMueller
Date Wed, 09 Dec 2009 14:39:12 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "BackupAndMigration" page has been changed by ThomasMueller.
The comment on this change is: TOC.
http://wiki.apache.org/jackrabbit/BackupAndMigration?action=diff&rev1=4&rev2=5

--------------------------------------------------

- == Repository Backup ==
+ == Repository Backup and Migration ==
  
- You can back up a Jackrabbit repository in the following ways:
+ <<TableOfContents>>
  
+ == Export to XML ==
-  * Low level backup (file system / database)
-  * Export to XML using the JCR API 
-  * Using a tool 
  
- === Low Level Backup ===
+ The JCR API provided two ways to export data as XML. To create XML documents of a node and
it's subnodes, use Session.exportDocumentView(..) or Session.exportSystemView(..). To restore
a backup, use Session.importXML(..) or Workspace.importXML(..).
  
+ === Repository Migration ===
+ 
+ An easy way to migrate a repository to a new persistence manager, or to use the data store,
is by exporting the data to XML and then re-importing it in the new repository. However, depending
on the size of the repository, this solution make be slow or run out of memory.
+ 
+ == Tools ==
+ 
+ === Repository Copier Tool ===
+ 
+ Jackrabbit 1.6 and newer supports a tool to copy a repository:
+ [[http://jackrabbit.apache.org/api/1.6/org/apache/jackrabbit/core/RepositoryCopier.html|RepositoryCopier
API]]
+ 
+ === JeCARS ===
+ 
+ Some JCR tools provide backup facilities, for example [[http://jecars.sf.net|JeCARS]]. See
[[http://jecars.wiki.sourceforge.net/How+to+use+the+JeCARS+backup+facility|Backup Facility]]
for details.
+ 
+ == Low Level Backup ==
+ 
- Backing up the file system (and database if used) is the solution fastest.
+ Backing up the file system (and database if used) is the fastest solution.
  
  Files of the file DataStore can be backed up at any time, because the files are never modified.
You should make sure not to backup the temp files however.
  
@@ -19, +34 @@

  Database persistence managers: many databases support online backup, so if you use that
you should be safe.
  
  You also need to backup the repository directory, but this doesn't change usually.
- 
- === Export to XML ===
- 
- To create XML documents of a node and it's subnodes, use Session.exportDocumentView(..)
or Session.exportSystemView(..). To restore a backup, use Session.importXML(..) or Workspace.importXML(..).
- 
- === JeCARS ===
- 
- Some JCR tools provide backup facilities, for example [[http://jecars.sf.net|JeCARS]]. See
[[http://jecars.wiki.sourceforge.net/How+to+use+the+JeCARS+backup+facility|Backup Facility]]
for details.
- 
- == Repository Migration ==
- 
- An easy way to migrate a repository to a new persistence manager, or to use the data store,
is by exporting the data to XML and then re-importing it in the new repository.
- 
- === RepositoryCopier ===
- 
- Jackrabbit 1.6 and newer supports a tool to copy a repository:
- [[http://jackrabbit.apache.org/api/1.6/org/apache/jackrabbit/core/RepositoryCopier.html|RepositoryCopier
API]]
   
  

Mime
View raw message