mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Force blocking DB backup to improve integrity of backup files
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user