Este conteúdo não está disponível no idioma selecionado.
4.4. Restore a Repository
Once you have a complete backup on disk, you can then restore a repository back to the state captured within the backup using the
restoreRepository
method provided by the org.modeshape.jcr.api.RepositoryManager interface.
To do this, start a repository (or perhaps a new instance of a repository with a different configuration) and, before it is used by any applications, restore the content.
The following code demonstrates usage of the restore method:
Once a restore succeeds, the newly-restored repository will be restarted and ready for use.