Class BackupTask
java.lang.Object
com.hypixel.hytale.server.core.util.backup.BackupTask
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Durationprivate static final DateTimeFormatterprivate final CompletableFuture<Void> private static final com.hypixel.hytale.logger.HytaleLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcleanOldBackups(Path dir) private static voidcleanOrArchiveOldBackups(Path sourceDir, Path archiveDir) private static FileTimegetMostRecentArchive(Path dir) static CompletableFuture<Void>
-
Field Details
-
BACKUP_FILE_DATE_FORMATTER
-
BACKUP_ARCHIVE_FREQUENCY
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
completion
-
-
Constructor Details
-
BackupTask
-
-
Method Details
-
start
-
cleanOrArchiveOldBackups
private static void cleanOrArchiveOldBackups(@Nonnull Path sourceDir, @Nonnull Path archiveDir) throws IOException - Throws:
IOException
-
cleanOldBackups
- Throws:
IOException
-
getMostRecentArchive
- Throws:
IOException
-