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
|
// Actually create backup
|
||||||
try (Statement stmt = this.connection.createStatement()) {
|
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) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to backup repository");
|
throw new DataException("Unable to backup repository");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user