Class BackupTask

java.lang.Object
com.hypixel.hytale.server.core.util.backup.BackupTask

public class BackupTask extends Object
  • Method Details

    • start

      public static CompletableFuture<Void> start(@Nonnull Path universeDir, @Nonnull Path backupDir)
      Starts a new BackupTask on a non-daemon thread. The returned CompletableFuture will complete once the backup is finished, unless it completes exceptionally.
      Parameters:
      universeDir - The universe directory to back up.
      backupDir - The directory to place the backup in.
      Returns:
      A CompletableFuture representing the backup progress.