-
1. Re: How to make full copy of repository?
rhauch Jun 3, 2014 9:30 AM (in response to gdv)There are a couple of ways of making a copy of the repository.
The easiest way that works for any situation is to use the backup facility to create a backup, and then restore that backup into the second repository. This works regardless of the way the content is actually persisted.
If your repository persists all of its data locally on the file system (and is not clustered), then you might be able to copy the directory structure(s) used by the Infinispan cache store, the indexes, and the binary store. The exact directories depend a lot on the type of Infinispan cache store and your configuration of ISPN and ModeShape. This is a lot more brittle -- if you make a mistake and don't copy everything correctly, you might not find out right away. On the other hand, this might be the fastest way and may be perfect for development environments. Oh, be sure to copy the directories only after shutting down the repository using those directories.