class BackupTool {

    public static void main( String[] args )
    {
        System.err.println( "WARNING: neo4j-backup is deprecated and support for it will be removed in a future\n" +
                "version of Neo4j; please use neo4j-admin backup instead.\n" );
        try ( BackupProtocolService backupProtocolService = backupProtocolService() )
        {
            BackupTool tool = new BackupTool( backupProtocolService, System.out );
            BackupOutcome backupOutcome = tool.run( args );

            if ( !backupOutcome.isConsistent() )
            {
                exitFailure( "WARNING: The database is inconsistent." );
            }
        }
        catch ( Exception e )
        {
            System.out.println( "Backup failed." );
            exitFailure( e.getMessage() );
        }
    }

      BackupTool( BackupProtocolService backupProtocolService, PrintStream systemOut );

}