public class BackupSet extends Object implements Comparable<BackupSet>
| Modifier and Type | Field and Description |
|---|---|
static String |
BACKUPSET_ZIPFILE_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BackupSet other)
Compares the backup sets by using the sets' associated full backups' backup date.
|
boolean |
containsBackupForDate(Date date) |
boolean |
containsDirectory(File directory) |
void |
delete() |
void |
deleteUnzipDir()
Deletes the directory used for unzipping this BackupSet.
|
List<File> |
getDiffBackups() |
List<String> |
getDiffBackupsNames() |
File |
getFullBackup() |
String |
getFullBackupName() |
File |
getUnzipDir() |
boolean |
isInZipFile() |
boolean |
isValid() |
String |
toString() |
BackupSet |
unzip()
Unzips this backup set if it was initialized from a ZIP file.
|
BackupSet |
unzipTo(File directory)
Unzips this backup set into a directory within the specified directory if it was initialized from a ZIP file.
|
File |
zipTo(File directory) |
public static final String BACKUPSET_ZIPFILE_PREFIX
public BackupSet(File initial)
initial - either a FULL or DIFF backup directory, or a BackupSet ZIP file.public boolean isValid()
public void delete()
throws IOException
IOExceptionpublic void deleteUnzipDir()
public BackupSet unzip() throws IOException
IOException - - if an I/O error occurs.public BackupSet unzipTo(File directory) throws IOException
directory - target directoryIOException - - if an I/O error occurs.public File zipTo(File directory)
directory - target directorypublic int compareTo(BackupSet other)
compareTo in interface Comparable<BackupSet>public boolean containsDirectory(File directory)
directory - directory to search forpublic boolean containsBackupForDate(Date date)
date - date to search forpublic boolean isInZipFile()
public File getFullBackup()
public String getFullBackupName()
public List<File> getDiffBackups()
public List<String> getDiffBackupsNames()
public File getUnzipDir()
Copyright © 2016–2020. All rights reserved.