Package org.apache.solr.handler
Class IncrementalShardBackup
- java.lang.Object
-
- org.apache.solr.handler.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 Summary
Constructors Constructor Description IncrementalShardBackup(BackupRepository backupRepo, SolrCore solrCore, BackupFilePaths incBackupFiles, ShardBackupId prevShardBackupId, ShardBackupId shardBackupId, Optional<String> commitNameOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedList<Object>
backup()
protected NamedList<Object>
backup(org.apache.lucene.index.IndexCommit indexCommit)
-
-
-
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.
-
-