Commit Graph
2489 Commits
Author SHA1 Message Date
marceloduplicatiandGitHub 4b1bc5442a Merge: Fix Resource Leak in BackendManager Connection Handling
Fix Resource Leak in BackendManager Connection Handling
2025-04-08 19:38:27 -03:00
Marcelo C. d528ef6278 Fix Resource Leak in BackendManager Connection Handling
While investigating issue [#6103](https://github.com/duplicati/duplicati/issues/6103), found that connections were not disposed due to the backend pool in BackendManager's handler. Set up a FileZilla server to test the issue before and after the change, confirming that connections now close as expected with this fix.
2025-04-08 11:24:14 -03:00
Kenneth Skovhede 11a233c20a Merge commit '4a6bf8aa019d86cc9a10eefa55aced14e8a13128' into feature/improve-block-reuse 2025-04-06 09:25:10 +02:00
Kenneth Skovhede 3a638bc41d Added minor delay to deal with backups running back-to-back.
Probably mostly happening in tests.

(cherry picked from commit ba4b6d4fc5)
2025-04-06 09:22:59 +02:00
Kenneth Skovhede 1095850965 Reworked the way deleted blocks are detected.
This should have a much lower performance impact.
2025-04-06 08:41:59 +02:00
Kenneth Skovhede cfad020ef2 Merge commit '61892a40d9aff663da86eda273505970268f6384' into feature/improve-block-reuse 2025-04-06 08:36:24 +02:00
Kenneth SkovhedeandGitHub 15c2079cdc Merge branch 'master' into feature/improve-compact-block-use-check 2025-04-06 08:28:03 +02:00
Kenneth Skovhede 2deb147e71 Fixed change stats and added a test 2025-04-05 22:58:10 +02:00
Kenneth Skovhede 8b72528030 Re-implemented the change statistics calculation. 2025-04-05 21:42:05 +02:00
Kenneth Skovhede bb24036602 Fixed performance degradation after parameter queries 2025-04-05 09:25:10 +02:00
Kenneth Skovhede 52fc144580 Merge branch 'master' into feature/improve-compact-block-use-check 2025-04-04 14:41:58 +02:00
Kenneth SkovhedeandGitHub cfc322c629 Merge pull request #6122 from duplicati/feature/remove-positional-sql-arguments
Remove positional arguments from SQL queries
2025-04-04 11:49:36 +02:00
Kenneth Skovhede 0ed672ff33 Fixed missing @Type parameter 2025-04-03 22:33:09 +02:00
Kenneth Skovhede 2060e9067d Clear databases fileset entries prior to recreate 2025-04-03 22:20:42 +02:00
Kenneth Skovhede 457349fd2d More cleanup 2025-04-03 22:15:19 +02:00
Kenneth SkovhedeandGitHub 7773d111bd Merge pull request #6119 from duplicati/feature/fix-parsing-the-time-parameter
Introduce `DateTime` option type.
2025-04-03 21:36:50 +02:00
Kenneth Skovhede ba4b6d4fc5 Added minor delay to deal with backups running back-to-back.
Probably mostly happening in tests.
2025-04-03 17:40:12 +02:00
Kenneth Skovhede 645c07dedd Fixed an issue with sleep prevention giving warnings in rare cases 2025-04-03 17:16:12 +02:00
Kenneth SkovhedeandGitHub 4779fe96a1 Merge branch 'master' into feature/remove-positional-sql-arguments 2025-04-03 17:09:32 +02:00
Kenneth Skovhede 73a2f32b05 Stop recreate early if passphrase is missing
If the passphrase is not supplied it will not be possible to recreate the database.

Prior to this commit, attempting this would result in a string of error messages that do not point to the problem.

With this commit, a single error message is given explaining the problem.
2025-04-03 17:07:28 +02:00
Kenneth Skovhede 0b735d79ff More cleanup and a few bug fixes 2025-04-03 16:38:51 +02:00
Kenneth Skovhede 2006556778 Fixed some more nullable support in the database layer 2025-04-03 15:46:20 +02:00
Kenneth Skovhede 0638afb8b8 Fixed some nullable support 2025-04-03 15:25:20 +02:00
Kenneth Skovhede ef449bc569 Some nullable updates 2025-04-03 14:32:47 +02:00
Kenneth Skovhede 35682bd4fe Cleaned up some nullability issues 2025-04-03 14:20:00 +02:00
Kenneth Skovhede e96e769ba6 Removed support for positional arguments in extension methods 2025-04-03 13:59:39 +02:00
Kenneth Skovhede 6db50381cb Additional fixes 2025-04-03 13:58:06 +02:00
Kenneth Skovhede 9e3aa72d00 Added LocalBackupDatabase 2025-04-03 11:31:36 +02:00
Kenneth Skovhede 7c8571ed33 Added LocalTestDatabase 2025-04-03 09:03:22 +02:00
Kenneth Skovhede defb5a385b Added LocalRestoreDatabase 2025-04-03 09:00:55 +02:00
Kenneth Skovhede 424cc6f3ad Added LocalRepairDatabase 2025-04-02 23:34:30 +02:00
Kenneth Skovhede 7b948a2f1d Fixed issue with SQLite bindings not supporting arrays.
Added helper class to wrap values in a temporary table if they exceeed the maximum number of parameters.
2025-04-02 23:26:20 +02:00
Kenneth Skovhede ba8866f7d8 Added LocalRecreateDatabase 2025-04-02 16:54:16 +02:00
Kenneth Skovhede d7ccfa378d Added LocalPurgeDatabase 2025-04-02 16:20:12 +02:00
Marcelo C. bf22d7e178 Changed parameter from boolean to Enum for clarity of purpose 2025-04-02 10:15:21 -03:00
Kenneth Skovhede c1d83a4e59 Removed unused parameters 2025-04-02 14:51:31 +02:00
Kenneth Skovhede 6a4e0a989d Added LocalListDatabase 2025-04-02 14:46:38 +02:00
Kenneth Skovhede b0cab485ef Added LocalListChangesDatabase 2025-04-02 14:32:39 +02:00
Kenneth Skovhede 53a1d2a723 Added LocalListBrokenFilesDatabase 2025-04-02 14:06:06 +02:00
Kenneth Skovhede 1a1761b041 Added LocalListAffectedDatabase 2025-04-02 13:57:23 +02:00
Kenneth Skovhede a6a6790395 Updated LocalDeleteDatabase 2025-04-02 13:49:21 +02:00
Kenneth Skovhede 834436cebe LocalBugReportDatabase 2025-04-02 13:31:31 +02:00
Kenneth Skovhede d593398779 Fixed merge issue 2025-04-01 22:07:51 +02:00
Kenneth Skovhede f5061476c0 Merge remote-tracking branch 'origin/master' into feature/improve-block-reuse 2025-04-01 22:02:58 +02:00
Marcelo C. 2da12c12bb Refactoring of how permissions are set whilst obtaining DataFolder
This addresses [Issue](https://github.com/duplicati/duplicati/issues/6114).

Whenever in non-write context, the permissions of the folder are not set.

Changing pattern from static constructor execution.
2025-04-01 15:21:40 -03:00
Kenneth Skovhede 8753e5dc85 Merge remote-tracking branch 'origin/master' into feature/improve-compact-block-use-check 2025-04-01 15:54:54 +02:00
Kenneth Skovhede f91c814a45 Introduce DateTime option type.
This commit adds the `DateTime` option to support validation of the `--time` parameter, which can both be an absolute date and time, or a relative value.

This fixes #6107
2025-04-01 14:17:37 +02:00
Kenneth Skovhede 217f328759 Show names of empty index files 2025-03-28 16:18:16 +01:00
Kenneth Skovhede 1855195d48 Improve Windows anti-sleep
This updates the Windows sleep prevention code to repeatedly reset the sleep timer every 10s if sleep is not allowed.

Previous implementation would only call it once, which is not sufficient to prevent sleep as the timer will eventually run out.
2025-03-28 14:21:23 +01:00
Carl Johnsen a4cf24e854 Merge branch 'master' into bugfix/restore-folder-metadata 2025-03-26 12:07:27 +01:00