forked from Qortal/qortal
Force blocking DB backup to improve integrity of backup files
This commit is contained in:
parent
e953be6e4a
commit
ed4a45f214
@ -372,7 +372,7 @@ public class HSQLDBRepository implements Repository {
|
||||
|
||||
// Actually create backup
|
||||
try (Statement stmt = this.connection.createStatement()) {
|
||||
stmt.execute("BACKUP DATABASE TO 'backup/' NOT BLOCKING AS FILES");
|
||||
stmt.execute("BACKUP DATABASE TO 'backup/' BLOCKING AS FILES");
|
||||
} catch (SQLException e) {
|
||||
throw new DataException("Unable to backup repository");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user