typos
parent
7734c16e06
commit
993d6359ad
|
@ -124,7 +124,7 @@ public class ConfigPOJO implements ConfigData {
|
||||||
public ArchiveFormat format = ArchiveFormat.ZIP;
|
public ArchiveFormat format = ArchiveFormat.ZIP;
|
||||||
|
|
||||||
@Comment("""
|
@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
|
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
|
Very Permissible mode will skip the verification process. THIS MOST CERTAINLY WILL LEAD TO DATA LOSS OR CORRUPTION
|
||||||
""")
|
""")
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class MakeBackupRunnable implements Callable<Void> {
|
||||||
log.trace("Outfile is: {}", outFile);
|
log.trace("Outfile is: {}", outFile);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//I think I should synchronise those two next calls...
|
//I think I should synchronise these two next calls...
|
||||||
Utilities.disableWorldSaving(context.server());
|
Utilities.disableWorldSaving(context.server());
|
||||||
Globals.INSTANCE.disableWatchdog = true;
|
Globals.INSTANCE.disableWatchdog = true;
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ public class MakeBackupRunnable implements Callable<Void> {
|
||||||
try {
|
try {
|
||||||
Files.delete(outFile);
|
Files.delete(outFile);
|
||||||
} catch (IOException ex) {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class RestoreBackupRunnable implements Runnable {
|
||||||
FutureTask<Void> waitForShutdown = new FutureTask<>(() -> {
|
FutureTask<Void> waitForShutdown = new FutureTask<>(() -> {
|
||||||
ctx.server().getThread().join(); //wait for server to die and save all its state
|
ctx.server().getThread().join(); //wait for server to die and save all its state
|
||||||
if(config.get().backupOldWorlds) {
|
if(config.get().backupOldWorlds) {
|
||||||
return MakeBackupRunnableFactory.create(
|
return MakeBackupRunnableFactory.create (
|
||||||
BackupContext.Builder
|
BackupContext.Builder
|
||||||
.newBackupContextBuilder()
|
.newBackupContextBuilder()
|
||||||
.setServer(ctx.server())
|
.setServer(ctx.server())
|
||||||
|
|
Loading…
Reference in New Issue