Force blocking DB backup to improve integrity of backup files

This commit is contained in:
catbref 2020-12-16 12:51:30 +00:00
parent e953be6e4a
commit ed4a45f214

View File

@ -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");
}