This commit is contained in:
Szum123321 2022-11-27 23:20:05 +01:00
parent 7734c16e06
commit 993d6359ad
3 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ public class ConfigPOJO implements ConfigData {
public ArchiveFormat format = ArchiveFormat.ZIP;
@Comment("""
The Strict mode (default) aborts backup creation in case of any problem and deletes the created files
\nThe Strict mode (default) aborts backup creation in case of any problem and deletes created files
Permissible mode keeps partial/damaged backup but won't allow to restore it
Very Permissible mode will skip the verification process. THIS MOST CERTAINLY WILL LEAD TO DATA LOSS OR CORRUPTION
""")

View File

@ -59,7 +59,7 @@ public class MakeBackupRunnable implements Callable<Void> {
log.trace("Outfile is: {}", outFile);
try {
//I think I should synchronise those two next calls...
//I think I should synchronise these two next calls...
Utilities.disableWorldSaving(context.server());
Globals.INSTANCE.disableWatchdog = true;
@ -116,7 +116,7 @@ public class MakeBackupRunnable implements Callable<Void> {
try {
Files.delete(outFile);
} catch (IOException ex) {
log.error("An exception occurred while tryin go delete: {}", outFile, ex);
log.error("An exception occurred while trying go delete: {}", outFile, ex);
}
}

View File

@ -70,7 +70,7 @@ public class RestoreBackupRunnable implements Runnable {
FutureTask<Void> waitForShutdown = new FutureTask<>(() -> {
ctx.server().getThread().join(); //wait for server to die and save all its state
if(config.get().backupOldWorlds) {
return MakeBackupRunnableFactory.create(
return MakeBackupRunnableFactory.create (
BackupContext.Builder
.newBackupContextBuilder()
.setServer(ctx.server())