public class CheckSnapshot extends Object
| Constructor and Description |
|---|
CheckSnapshot(SnapshotManifest manifest,
BackupFileCopy backupCopy,
BackupArchiveLocation backupLocation)
Creates a CheckSnapshot object for checking the validity of an archived
backup snapshot.
|
| Modifier and Type | Method and Description |
|---|---|
String |
check()
Checks the validity of the snapshot specified in the constructor.
|
static void |
main(String[] argv)
Checks the validity of an archived backup snapshot.
|
static SnapshotManifest |
readManifest(Path manifestPath)
Returns the manifest stored in the specified file.
|
public CheckSnapshot(SnapshotManifest manifest, BackupFileCopy backupCopy, BackupArchiveLocation backupLocation)
manifest - the manifest of the snapshot to checkbackupCopy - used to check files in the backup archivebackupLocation - used to identify the location of files in the
backup archivepublic static void main(String[] argv)
argv - the argumentsUSAGEpublic String check()
RuntimeException - if the check failspublic static SnapshotManifest readManifest(Path manifestPath) throws IOException
manifestPath - the path of the manifest fileIOException - if there is an I/O error, including if the manifest
file is not foundCopyright © 2024. All rights reserved.