eXo Platform 3.5

## Chapter 37. Use external backup tool

## Repository suspending

To have the repository content consistent with the search index and value storate, the repository should be suspened. It means all working threads are suspended until resume operation performed. Index will be flushed.

JCR provides ability to suspend repository via JMX.

To suspend repository just need to invoke suspend() operation. The returned result will be "suspended" if everything passed successfully.

The result "undefined" means not all components successfully suspended, check console to see stacktraces.

## Backup

Now we can backup content manually or using third part software. We need to backup:

- Database

- Lucene index

- Value storage (if configured)

## Repository resuming

Once backup is done need to invoke resume() operation to switch repository back to online. The returned result will be "online".