Commit Graph
688 Commits
Author SHA1 Message Date
Kenneth Skovhede 10f78e4d86 Added test for issue #5862 2025-05-14 20:40:13 +02:00
Kenneth Skovhede e069e504f6 Restored missing test 2025-05-12 13:07:53 +02:00
Kenneth Skovhede e8e112ffdb Fixed tests 2025-05-12 13:05:26 +02:00
Kenneth Skovhede d0fa3b7d87 Merge commit '2f0e9dc6f131e6473b9a1ed8e41e2eefb893c8d6' into feature/fix-restore-duplicate 2025-05-12 11:15:57 +02:00
Kenneth SkovhedeandGitHub 2f0e9dc6f1 Merge pull request #6237 from duplicati/feature/issue-5987
Rewrote the repair for scenarios where remote files are missing.
2025-05-12 11:07:08 +02:00
Kenneth Skovhede 2b364d8ca1 Fixed wrong assumption in tests 2025-05-10 09:47:50 +02:00
Kenneth Skovhede 51bcec3efc Style cleanup, named tuples.
Fix indentation.
Move metadata check up.
2025-05-09 17:34:09 +02:00
Kenneth Skovhede fe866ceb9f Implemented support for repairing the database when only parts of the source data is available.
This repair will leave the database in a still-broken state, but if this is run prior to purge-broken-files, less data will be lost.

Also updated the purge-broken-files operation to keep files and directories in the set, if they are only missing metadata.
2025-05-09 11:12:29 +02:00
Kenneth Skovhede d22ce5370e Rewrote the repair for scenarios where remote files are missing.
This adds a number of additional features to the repair process so it can actually fully recover if all data is present.

Also added a several tests to ensure that the functionality works in multiple scenarios.

This fixes #5987
2025-05-08 10:31:38 +02:00
Kenneth Skovhede a9a662e3fe Added test to reproduce #5987 2025-05-05 16:42:53 +02:00
Kenneth Skovhede c9f985ecdd Final removal of FIXMEGlobal 2025-05-05 16:13:46 +02:00
Kenneth Skovhede 467c6eb44c One more removal from FIXMEGlobal 2025-05-04 12:21:06 +02:00
Kenneth Skovhede a271183b44 Merge branch 'fix-restore-duplicate' of github.com:Jojo-1000/duplicati into Jojo-1000-fix-restore-duplicate 2025-04-30 18:32:43 +02:00
Kenneth SkovhedeandGitHub a15c3262be Merge branch 'master' into fix-regexp-combine 2025-04-30 16:14:17 +02:00
Kenneth SkovhedeandGitHub 349a6e55fb Merge pull request #6217 from duplicati/feature/add-test-for-4988
Added a test for #4988
2025-04-30 16:09:00 +02:00
Kenneth SkovhedeandGitHub 9b3328daef Merge pull request #6210 from duplicati/feature/improve-backup-listing-speed
Improve backup listing speed for restore
2025-04-30 12:47:13 +02:00
Kenneth Skovhede 5fbd561a8f Added a test for #4988
This PR adds a test that replicates issue #4988.

Since the test now passes, the issue is solved.

This fixes #4988
2025-04-30 12:40:23 +02:00
Kenneth Skovhede 62a3ca9b91 Added tests for 5066
This adds tests the issue described in #5066.

The issue was already fixed, so the tests were verified rolling back the offending query.

This closes #5066
2025-04-29 17:10:49 +02:00
Kenneth Skovhede a3bc9b80ca Implemented 4 new list methods that are optimized for a single operation 2025-04-29 10:03:57 +02:00
Kenneth Skovhede 32f44a1ea7 Fixed issues with compile after merges 2025-04-25 17:21:39 +02:00
Kenneth SkovhedeandGitHub af9465d8e3 Merge pull request #6187 from duplicati/feature/fix-throttle-speeds
Fixed throttle support
2025-04-25 15:36:44 +02:00
Kenneth SkovhedeandGitHub 2837a105ee Merge pull request #6186 from duplicati/feature/add-sqlite-cache-value
Added option to set the SQLite page cache
2025-04-25 14:45:43 +02:00
Kenneth SkovhedeandGitHub da02a93978 Merge branch 'master' into feature/fix-throttle-speeds 2025-04-25 13:58:53 +02:00
Kenneth SkovhedeandGitHub 1bbe04a782 Merge branch 'master' into feature/add-sqlite-cache-value 2025-04-25 13:58:24 +02:00
Kenneth Skovhede 04b98b4be6 Added tests to database tool 2025-04-25 12:30:26 +02:00
Kenneth Skovhede ba298df915 Added an upgrade command to the database tool 2025-04-25 12:30:03 +02:00
Kenneth Skovhede f88635717d Merge remote-tracking branch 'origin/master' into feature/fix-throttle-speeds 2025-04-24 21:49:11 +02:00
Kenneth Skovhede 46f5efd178 Merge branch 'master' into feature/support-glacier-style-non-readable-files 2025-04-23 22:37:31 +02:00
Kenneth SkovhedeandGitHub 171eb1bb12 Merge branch 'master' into feature/add-sqlite-cache-value 2025-04-23 16:34:55 +02:00
Kenneth Skovhede edca083cc9 Extended tests to ensure they cover what they are supposed to cover 2025-04-23 15:40:06 +02:00
Kenneth SkovhedeandGitHub 0c4fffa6ce Merge branch 'master' into feature/add-sqlite-cache-value 2025-04-23 15:25:00 +02:00
Kenneth Skovhede 3ed195d821 Updated tests 2025-04-23 11:49:06 +02:00
Kenneth Skovhede f393c00030 Fixed throttle support
This moves the throttle support to the StreamUtil throttled stream, which allows multiple streams to share a throttle value, such that the throttle setting is applied to the entire communication from Duplicati, and not for each connection.

This also cleans up a bit in the progress reporting, where the backend manager now keeps track of the "active" transfer and only emits progress on that. Once it finishes, a new transfer is promoted a "active".
2025-04-22 22:54:48 +02:00
Kenneth Skovhede 0a7a1cd689 Added option to set the SQLite page cache
This adds an extra option to allow setting the SQLite page cache size as a regular option.

Prior to this commit it was only possible to set the SQLite page cache size via environment variables.

The option to use environment variables is preserved, and as options from the environment variable are applied after the new setting, environment variables take precedence.

The default value for the new option is to use 1% of the system memory for the page cache. For the restore process, a connection per worker may be made which defaults to half the number of cores, so the maximum amount of memory is 1% * half the CPU cores.

This is just the upper limit, and SQLite may choose not to use all of it.

This fixes #6178
2025-04-22 14:26:46 +02:00
Kenneth SkovhedeandGitHub 0e2e474721 Merge pull request #6168 from duplicati/feature/capture-failing-ci-test
Added logging to catch CI-only failure
2025-04-16 14:11:32 +02:00
Kenneth SkovhedeandGitHub bff95cb3d3 Merge pull request #6158 from duplicati/feature/more-sqlite-tests
Added SQLite tests
2025-04-16 08:06:49 +02:00
Kenneth Skovhede 49cb6f01fb Added logging to catch CI-only failure 2025-04-16 08:05:38 +02:00
Kenneth Skovhede e392658e35 Fixed multiple retention settings in delete.
The delete call would select the same fileset multiple times if multiple retention options were present.

This fixes the selection to a distinct set.
This fixes #6127
2025-04-15 12:13:47 +02:00
Kenneth Skovhede 6e18f7a4d9 Added SQLite tests
Fixed the temporary db value list
2025-04-14 11:24:13 +02:00
Kenneth Skovhede f0f68dfebf Fix locale-sensitive time parsing
On some locales, odd strings would parse as valid full dates, causing relative dates to be incorrectly calculated.

This commit fixes the issues and revisits the DST aware calculations with more tests.
2025-04-08 23:38:36 +02:00
Kenneth Skovhede 11a233c20a Merge commit '4a6bf8aa019d86cc9a10eefa55aced14e8a13128' into feature/improve-block-reuse 2025-04-06 09:25:10 +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 52fc144580 Merge branch 'master' into feature/improve-compact-block-use-check 2025-04-04 14:41:58 +02:00
Kenneth Skovhede c3e0f7369e Added comment 2025-04-03 22:27:13 +02:00
Kenneth Skovhede 7369ecfbfb Slightly easier to read numbers 2025-04-03 21:35:16 +02:00
Kenneth Skovhede d55ac02d3f Added tests for better coverage 2025-04-03 21:05:22 +02:00
Kenneth Skovhede 36b8308d67 Added delays to make tests more stable 2025-04-03 17:21:05 +02:00