Package org.apache.solr.handler
Class IncrementalShardBackup
java.lang.Object
org.apache.solr.handler.IncrementalShardBackup
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionIncrementalShardBackup(BackupRepository backupRepo, SolrCore solrCore, BackupFilePaths incBackupFiles, ShardBackupId prevShardBackupId, ShardBackupId shardBackupId, Optional<String> commitNameOption) -
Method Summary
-
Constructor Details
-
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 Details
-
backup
- Throws:
Exception
-
backup
protected IncrementalShardBackup.IncrementalShardSnapshotResponse backup(org.apache.lucene.index.IndexCommit indexCommit) throws Exception - Throws:
Exception
-