Commit Graph
2544 Commits
Author SHA1 Message Date
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 4cf2486bc8 Included fix from #4990
This closes #4990
2025-04-30 09:26:58 +02:00
Kenneth Skovhede 39dca1eb79 Improve list-broken-files output
This hand-picks the changes from #5049 by @gpatel-fr.

The change is to use a left-join to include all broken files, even if there are no entries in the Blockset table.

The update is only visual but makes the results consistent with the actual operation performed by purge-broken-files.

This close #5049
2025-04-30 09:22:24 +02:00
Kenneth Skovhede f533e3d300 Moved fragment back 2025-04-29 15:49:38 +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 SkovhedeandGitHub 5464dc0940 Merge pull request #5133 from duplicati/feature/support-cachedir-tag
Added `CACHEDIR.TAG` as the default marker for ignoring directories
2025-04-26 10:39:01 +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 4515e13342 Merge pull request #6199 from duplicati/feature/add-downgrade-db-tool
Added a database downgrade tool
2025-04-25 14:43:59 +02:00
Kenneth SkovhedeandGitHub 39b12b958d Merge pull request #6191 from duplicati/feature/warn-more-on-extra-files
Warn more on extra files
2025-04-25 13:59:20 +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 SkovhedeandGitHub 32025984ee Merge pull request #5925 from duplicati/feature/support-glacier-style-non-readable-files
Adds support for a flag to mark remote files as "Archived".
2025-04-25 13:57:02 +02:00
Kenneth Skovhede ba298df915 Added an upgrade command to the database tool 2025-04-25 12:30:03 +02:00
Kenneth Skovhede 1eb95c046f Added option to scan for databases that are not connected to CLI or server database. 2025-04-25 11:13:50 +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 ebaf725598 Fixed a case where ArchiveTime could be created as nullable 2025-04-24 21:26:24 +02:00
Kenneth Skovhede 69df1d5eec Fixed logic to correctly see if ArchiveTime is set 2025-04-24 20:30:56 +02:00
Kenneth Skovhede 2ef04e43ee Simplified new ArchiveTime column to not allow null 2025-04-24 20:30:08 +02:00
Kenneth Skovhede 75f7582014 Fixed passing transaction to more places 2025-04-24 20:28:26 +02:00
Kenneth Skovhede a0ecc5e05d Added a database downgrade tool 2025-04-24 16:36:14 +02:00
Kenneth SkovhedeandGitHub 55d3e8f299 Merge pull request #6197 from duplicati/feature/fix-re-update-to-existing-version
Added flag to ignore updating to existing version
2025-04-24 10:59:44 +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 f3d7905f0e Merge branch 'master' into feature/support-cachedir-tag 2025-04-23 22:04:06 +02:00
Kenneth Skovhede 23db3fd090 Added flag to ignore updating to existing version
This fixes #4604

This fixes #3587

This fixes #2275
2025-04-23 17:05:40 +02:00
Kenneth Skovhede e0475f3a9c Ignore any error on pragma optimize.
Previous logic would only catch SQLite exceptions, but it is just a performance thing, so we can ignore any errors (they are still logged)
2025-04-23 16:40:36 +02:00
Kenneth SkovhedeandGitHub 171eb1bb12 Merge branch 'master' into feature/add-sqlite-cache-value 2025-04-23 16:34:55 +02:00
Kenneth SkovhedeandGitHub a1de1d9983 Merge branch 'master' into feature/warn-more-on-extra-files 2025-04-23 16:34:29 +02:00
Kenneth Skovhede 18477c572d Fixed some nullability warnings 2025-04-23 15:40:16 +02:00
Kenneth Skovhede 3ff868b0f9 Removed tracking of files sizes, and implemented it with a database lookup 2025-04-23 15:39:32 +02:00
Kenneth SkovhedeandGitHub 0c4fffa6ce Merge branch 'master' into feature/add-sqlite-cache-value 2025-04-23 15:25:00 +02:00
Kenneth SkovhedeandGitHub 2e9d3d32dd Merge branch 'master' into feature/warn-more-on-extra-files 2025-04-23 15:24:29 +02:00
Kenneth Skovhede 8272ea3370 Warn more on extra files
If there are extra unknown files, this can be a sign that multiple backups are using the same folder.

It can also be a sign that an older database is used for some reason.

This PR updates the error message to mention these two common cases, and spell out what the repair process will do.
2025-04-23 14:10:15 +02:00
Kenneth Skovhede 66862043b6 Fixed a case where the transactions were not used, despite being active 2025-04-23 13:44:46 +02:00
Kenneth Skovhede d19e7f4430 More safeguards against getting an unknown remote file 2025-04-23 12:12:38 +02:00
Kenneth Skovhede e8f85961d0 Include more changes before comitting the transaction 2025-04-23 12:11:33 +02:00
Kenneth Skovhede e6ba6098d7 Implemented immediate transaction commits for almost all uploads.
This ensures that files cannot appear on the remote destination, despite terminating the host program.

This fixes #4485

There is still work needed to handle the repair and compact operations so they use transactions and can commit changes during transfer progress.
2025-04-23 12:11:16 +02:00
Kenneth Skovhede 7be9678080 Fixed handling promotion of pending upload to actual filelist 2025-04-23 11:48:35 +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 Skovhede 80ce993526 Simple fix to prevent uploading dlist on failures 2025-04-16 19:05:51 +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 0945657a29 Fixed transaction issue with test handler 2025-04-15 23:24:35 +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 c3fe98c09c Disable the begin immediate as it seems the library does it automatically 2025-04-14 22:57:44 +02:00
Kenneth Skovhede 4773914639 Rewrote testing to use an externally supplied transaction, to avoid temporary transactions from clearing the active transaction.
This is needed because SQLite does not support multiple active transactions.
2025-04-14 12:05:10 +02:00
Kenneth Skovhede faede65d8d Changed transactions to use a wrapper that ensures a transaction is allocated. 2025-04-14 12:04:00 +02:00
Kenneth Skovhede 6e18f7a4d9 Added SQLite tests
Fixed the temporary db value list
2025-04-14 11:24:13 +02:00
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