Class IncrementalShardBackup


  • public class IncrementalShardBackup
    extends Object
    Responsible for orchestrating the actual incremental backup process.

    If this is the first backup for a collection, all files are uploaded. But if previous backups exist, uses the most recent ShardBackupMetadata file to determine which files already exist in the repository and can be skipped.

    • Constructor Detail

      • IncrementalShardBackup

        public IncrementalShardBackup​(BackupRepository backupRepo,
                                      SolrCore solrCore,
                                      BackupFilePaths incBackupFiles,
                                      ShardBackupId prevShardBackupId,
                                      ShardBackupId shardBackupId,
                                      Optional<String> commitNameOption)
        Parameters:
        prevShardBackupId - previous ShardBackupMetadata file which will be used for skipping uploading index files already present in this file.
        shardBackupId - file where all meta data of this backup will be stored to.
    • Method Detail

      • backup

        protected org.apache.solr.common.util.NamedList<Object> backup​(org.apache.lucene.index.IndexCommit indexCommit)
                                                                throws Exception
        Throws:
        Exception