Commit Graph
210 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub cbdb9897c2 Merge pull request #6970 from duplicati/feature/relative-db-paths
Use relative database paths
2026-06-20 10:05:54 +02:00
Kenneth Skovhede 5c1b477cda Use relative database paths
This PR changes to use relative database paths by default. The default mode is to store all databases in the same folder.

With this update, the paths stored in the server database can now be relative, in which case they are resolved relative to the datafolder.

This makes it simpler to move the data folder as the paths are not stored in full.

For new backups, relative paths are assigned.
For existing backups, the full paths are retained.
If the database path is updated manually, the path will be made relative, if it is relative to the datafolder; otherwise a full path is stored.

This fixes #6677
2026-06-19 08:42:58 +02:00
Kenneth Skovhede 48baca7fa1 Another redesign on the user-facing options and wording 2026-06-18 11:37:18 +02:00
Kenneth Skovhede a8327b40aa Reworked logic to further reduce chance of leaking secrets in auto mode.
The SelfOnly mode was removed as was the "removeAdditionalSources" logic. Instead, the new SelfLimited mode always removes sensitive information, such that by default we do not store any sensitive information, not even with encryption enabled.

This is required to avoid accidentially leaking secrets found in remote sources, or the target url, in case the leak happens somewhere else than on the remote destination.

Additionally, this resolves an issue where remote source information could leak via the DisplayNames property.
2026-06-18 10:59:28 +02:00
Kenneth Skovhede b1e9ffb660 Merge remote-tracking branch 'origin/master' into feature/include-backup-config-in-backup 2026-06-17 23:43:18 +02:00
Kenneth Skovhede d0d6eb6d20 Added support for fetching remote configs and importing them in the API.
Also fixed a few errors related to importing a configuration with additional sources.
2026-06-17 23:34:30 +02:00
Kenneth Skovhede a522e251db Reworked logic for the option to minimize chances that someone accidentially chooses to store unencrypted passphrases.
To reduce logic bugs a separate ResolvedTaskConfigMode extracts the 3 different dimensions of the selection, and a test is added to ensure it behaves as expected.
2026-06-17 16:03:06 +02:00
Kenneth Skovhede 0c1a73fb61 Add searching in metadata
When performing searches on some remote source, like MS365, the actual file paths are not meaningfull to the user. Instead, the UI will display metadata that makes it easier to navigate.

This PR updates the search feature to optionally look in metadata and find matches there as well, making it simpler to work with such data.
2026-06-17 14:47:02 +02:00
Kenneth Skovhede dcaba2fbcd Store configuration with backup
This PR revives the `store-task-config` option that was never shown in the user interface and extends the feature to allow more flexibility in exporting the configurations.

The `Auto` setting is now on by default. For encrypted backups, this will store the backup configuration of the current backup with the backup for easy restore of a configuration.

For unencrypted backups, nothing will be stored by default.

To manually pick the what backup configurations are stored, the following options are also available:
- None: no configuration is stored
- Self: The configuration of the current backup is stored
- All: The configurations of all backups are stored

If the backup is not encrypted, the data is stored without any secrets (encryption keys, passphrases, passwords, api-keys, etc).

To override this, the following two options are also present:
- SelfWithForcedSecrets
- AllWithForcedSecrets

Using one of these when encryption is enabled has no additional effects, but for unecrypted backups this will include all secrets in the backups in plain-text.

This fixes #6256
This fixes #3073
2026-06-17 12:04:43 +02:00
Kenneth Skovhede 8663f55e8b Fixed case-insensitive search
This PR fixes a bug that caused backup searching to be case-sensitive.

The PR also exposes the case sensitive-flag in the API endpoint so the UI can toggle case-sensitive searching.
2026-06-17 10:15:08 +02:00
Kenneth Skovhede 0e36faab78 Allow disable default secret provider
This PR adds a new option `--disable-default-secret-provider` that will fully disable probing for the default secret provider.

This is to assist in cases where the secret provider is broken or shows unwanted popup dialogs.
2026-06-08 17:32:21 +02:00
Kenneth Skovhede 736df8173b Bump ngclient to 225
This updates ngclient to 225, and also adds `--duplicati-webservice-suppress-welcome-page` to automatically disable the welcome page that is shown on new installs.
2026-06-04 20:09:04 +02:00
Kenneth SkovhedeandGitHub ec38a2fe54 Merge pull request #6934 from duplicati/feature/improve-msi-service
Improve MSI installer package for Service
2026-06-03 10:38:53 +02:00
Kenneth Skovhede 6bea04e2a5 Fixed logic to avoid resetting the password when re-installing the service. 2026-05-29 12:38:13 +02:00
Kenneth Skovhede a0e672f2cf Added support for configuring TLS certificates as part of the install 2026-05-28 22:57:25 +02:00
Kenneth Skovhede d88ef81a8d Remove explicit defaults
This modifies the `newbackup.json` embedded file that specifies how to configure a new backup to no longer set the compression module or the dblock-size.

These options have a default value already defined, so there is no need to store the settings in the database.
2026-05-26 15:24:18 +02:00
Kenneth Skovhede bc945f4a29 Added IPC for operations
This PR adds experimental support for running the backup in an isolated process.

The motivation for this is to protect the server from a faulty process and later enable running server and processing with different security levels.

This needs to be toggled on, and then it will run the process isolated. When running as an isolated process, the "Abort" call will kill the process so it can no longer become "stuck".
2026-05-15 17:13:21 +02:00
Kenneth Skovhede 179d1ceb47 Make controller Async
This PR has a large blast radius because it takes the final step and bumps up the Controller to be fully async.

We have historically done a piece-by-piece update, so all operations were already async but the controller interface was kept synchronous.

With this update, the controller is now fully async and all tests are updated.

Most places where the new C# compiler warns about function names not ending in `Async` were also adressed, giving a massive refactor change.

Functionally, no changes are done.
2026-05-13 15:04:13 +02:00
Kenneth Skovhede 55c2ebf6c7 Deprecate old SharePoint
This PR deprecates the `mssp` and `od4b` backends as they stopped working when the APIs were turned off.

The upgrade path is to use `sharepoint` instead (which used to be named "SharePoint v2").

This PR also adds a small amount of metadata to modules so they can be marked as "untested" or "deprecated", and the configuration for marking modules has been set up in `BackendModules.cs`.

The backends that we currently cannot test (usualy due to not having public signups) are now marked as untested.
2026-05-13 13:30:39 +02:00
Kenneth Skovhede 05d91e6052 Websocket for remote management
This PR adds websocket messages so the FE does not have to use polling to update the view state.
2026-05-08 19:10:01 +02:00
Kenneth Skovhede 218304c971 Handle immediate usagereporter update
This PR fixes an issue where the callback for updating the usage reporter was not correctly registered.

The effect of this was that settings changes should update the usagereporter (disabling or setting the level), but due to the missing callback settings were not applied until the server restarted.

With this fix, the settings are applied immediately.
2026-05-08 15:42:38 +02:00
Kenneth Skovhede 8835389e62 Allow versions in search
This PR extends the search API to allow versions to be added so searching can be limited to specific versions.

Before this PR, only time was supported, but this is picking versions older than the timestamp as well.
2026-05-01 15:05:55 +02:00
Kenneth Skovhede 5d4a15aad0 Fixed a settings save bug
In some cases the database update can fail, and this could leave the transaction open.

Eventually, it will be collected and the transaction disposed so it will be sorted, but in the meantime attempts to save settings will fail as SQLite does not support multiple active transactions.

This PR adds failure dispose of the transactions in a few places to ensure failures does not cascade outside the original failure.
2026-04-21 14:50:30 +02:00
Kenneth Skovhede c0f40e19ca Updated copyright year to 2026 across the project 2026-04-16 15:21:24 +02:00
Carl Johnsen 5fabd76aa2 Removed whitespace 2026-03-20 13:27:54 +01:00
Carl Johnsen 9fd53c99c4 Updated the progress information that's sent to the UI during remote synchronization to reflect the progress on the overall destinations 2026-03-20 13:27:28 +01:00
Kenneth Skovhede 6ec7a24bb8 Improved settings management code.
The logic is now that the properties for each of the server settings are defined on the constant that triggers them, instead of splitting it across the API and internal database.

This makes it less error prone to introduce newsensitive server settings.
2026-03-02 13:50:43 +01:00
Kenneth Skovhede 07cd39af34 Add support for managed TLS
This PR adds support for generating a self-signed CA and then using that CA to generate TLS certificates.

A new tool `duplicati-configure` / `Duplicati.CommandLine.ConfigureTool.exe` is added to manage the certificates.  The tool saves the configuration in the database and is meant to run with elevated privileges for the initial CA installation.

The option `--configure-https` can be added to server/trayicon, and if the process has permissions, this will automatically install the CA certificate.

If a CA is configured, the server will automatically issue, renew and use a TLS certificate.

With this setup, the TLS is opt-in, but once the flow is well tested, we can switch it to opt-out.
2026-03-01 11:33:05 +01:00
Kenneth SkovhedeandGitHub 264f455319 Merge branch 'master' into feature/assign-license-from-console 2026-02-20 13:09:10 +01:00
Kenneth Skovhede ab82719a6b Improved license key support
Added support for reporting the license key details in SystemInfo.

Added support for loading a key via the console connection, if used.
2026-02-20 10:39:51 +01:00
Kenneth SkovhedeandGitHub e8bc016791 Merge branch 'master' into feature/folder-status-indicator 2026-02-20 10:34:16 +01:00
Kenneth SkovhedeandGitHub 8cf2154037 Merge pull request #6768 from duplicati/feature/add-google-workspace-backup
Add support for Google Workspace backup
2026-02-20 08:56:40 +01:00
Kenneth SkovhedeandGitHub a2d247adb3 Merge branch 'master' into feature/folder-status-indicator 2026-02-19 19:30:31 +01:00
Kenneth Skovhede 01130f4cd5 Implemented option to enable folder-status service (disabled by default). 2026-02-19 17:30:57 +01:00
Kenneth Skovhede efc0b183a8 Implemented mapping of additional destination urls to remote-sync-json-config 2026-02-19 16:36:22 +01:00
Kenneth Skovhede 4bba0d4a41 Updated unmasking to support values from persisted ConnectionStrings 2026-02-19 16:35:49 +01:00
Kenneth Skovhede 94d272e734 Added support for also storing the connectionstringId for additional target urls 2026-02-19 10:41:27 +01:00
Kenneth Skovhede ea6d94b035 Added support for storing multiple targets in database with backwards compatibility. 2026-02-18 11:06:08 +01:00
Kenneth Skovhede 3bc449281a Similar naming on modules.
Added sourceprovider/destinationprovider to list of collected password fields
2026-02-15 10:42:19 +01:00
Kenneth Skovhede 9dd6dba0c2 Merge remote-tracking branch 'origin/master' into feature/add-destination-repo 2026-02-05 10:26:45 +01:00
Kenneth SkovhedeandGitHub a6b9002011 Merge branch 'master' into feature/encrypt-and-mask-remote-sources 2026-02-04 14:21:19 +01:00
Kenneth SkovhedeandGitHub 562cb1199a Merge branch 'master' into feature/add-destination-repo 2026-02-02 11:00:39 +01:00
Kenneth Skovhede e009a0f3ec Remote source masking and encrypting
This PR adds masking to remote sources so the passwords are not leaked to the browser. The logic works the same as for TargetURL, where the sensitive fields are replaced by a password placeholder before being transmitted via the endpoints.

When data returns, the masking is removed by looking at the original source and the unmasked value is then encrypted before being stored in the database.

Since the sources is an array and not just a single field, the logic here uses the mount point as a "key" for figuring out which new sources map to the original sources. This is robust in the face of re-ordering, deletions and additions.

If there is just a single remote source (assumed most common) this will match even if the prefix does not, making it possible to change the prefix in this case.

For multi-remote sources, it is not possible to change the prefix without also re-typing all masked properties.

If there is a need later, we could extend the matching to look for how many unique protocols are there, and maybe servers as well to try to match better when the prefixes have been renamed.

There is a guard right before saving a source that rejects it if the source contains the placeholder so we ensure that even faulty logic cannot persist an invalid connection string.
2026-01-30 14:36:57 +01:00
Kenneth Skovhede cf17d2617e Added a connection string repo
This adds a connection string repo, where connection strings can be stored.

The general idea is that it is possible to store connection strings, say an S3 connection, and then re-use the connection string for multiple backups, editing as needed.

The implementation supports listing connection strings, creating, updating, and deleting them.

The connection strings are masked so sensitive information is not available in the browser, and the logic patches connection strings internally to ensure markers are replaced with the correct values.

The connection string itself is stored in full, such that a Duplicati version roll-back will not make the connectionstring become invalid.

There is also an endpoint that allows updating existing backups using the connection string, so it is easy to rotate keys. The logic for this feature is that it retains: scheme, port, host, path, and any extra settings on the target url.
It does not remove settings from the target, but will overwrite or add settings from the connectionstring.
2026-01-30 13:59:47 +01:00
Kenneth SkovhedeandGitHub 26f7dd8586 Merge branch 'master' into feature/add-office-365-backup 2026-01-29 20:04:42 +01:00
Kenneth Skovhede ff92837677 Fixed a missing event on settings update
When updating the server settings, the server would not emit the new settings on save, causing the UI to be inconsistent if websocket is active.

This happened primarily when saving advanced options.
2026-01-27 21:40:13 +01:00
Kenneth Skovhede 22e66a27a6 Rewrote logic to provide a restore destination 2026-01-14 10:04:52 +01:00
Kenneth Skovhede 1523f730e3 Added support for storing metadata in the database 2026-01-14 10:01:20 +01:00
Kenneth SkovhedeandGitHub 965618ba23 Merge pull request #6678 from duplicati/feature/duplicati-storage-backend
Duplicati storage server backend
2025-12-12 10:36:47 +01:00
Kenneth Skovhede af680f9a39 Merge remote-tracking branch 'origin/HEAD' into feature/vacuum-db-on-pwd-change 2025-12-12 09:24:16 +01:00