Chapter 6. Online Backup from Java

This chapter describes how to backup your data, full or subsequently incremental, from a JVM-based program.

In order to programmatically backup your data, full or subsequently incremental, from a JVM-based program you need to write Java code like the following:

        OnlineBackup backup = OnlineBackup.from( "127.0.0.1" );
        backup.backup( backupPath );
        assertTrue( "Should be consistent", backup.isConsistent() );
        backup.backup( backupPath );

For more information, please see the Javadocs for OnlineBackup.