Commit Graph
25 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub 28e3fa1063 Merge pull request #5914 from duplicati/feature/prevent-windows-subfolder-storage
Improve data folder assignment
2025-01-31 14:52:45 +01:00
Kenneth Skovhede fac12ba772 Further consolidated the data folder.
Added support for `--portable-mode` and `--server-datafolder` for the CLI, ServerUtil, and Agent.

Fixed a few places where file reads were not cached properly.

Moved some responsibilities of UpdaterManager into DataFolderManager.

This now supports storing `machineid.txt` and `installation.txt` inside the path pointed to by `--server-datafolder` or alternatively with `--portable-mode`.

It is possible that some fringe backwards compatibility is lost with this update.

Fixed an issue with AutoUpdater crashing on check/download.

This fixes #5902
2025-01-28 13:01:35 +01:00
Marcelo C. 2e502ea7be Help Command unification
All CLI tools and executables now accept a unified set of help command variants:

"help", "/help","--help", "usage", "/usage", "--usage", "/h", "-h"

Affected executables:

Duplicati.Agent
Duplicati.CommandLine
Duplicati.CommandLine.AutoUpdater
Duplicati.CommandLine.BackendTester
Duplicati.CommandLine.BackendTool
Duplicati.CommandLine.ConfigurationImporter
Duplicati.CommandLine.SecretTool
Duplicati.CommandLine.Snapshots
Duplicati.GUI.TrayIcon
Duplicati.Server
Duplicati.Service
Duplicati.WindowsService

Note that SharpAesCrypt command is not included in this because the parameter parsing is part of the SharpAesCrypt code base.
2025-01-17 14:00:14 -03:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth SkovhedeandGitHub 68627c06bf Feature/alternate windows eventlog (#5784)
* Improved Windows Eventlog support.

Added support for logging to a different log with a Log:Source format.
Backwards compatible by treating "Source" as "Application:Source", where "Source" is default "Duplicati".

* Changed default log-level for eventlog to `Warning`.
This fixes #5770

* Fixed issue where checking for event log would crash the process.
Changed default log to `Duplicati` (was `Application`).
New default source names for service, agent and server.

* Reverted windows log-level back to information, now that there is a separate log for it

* Using "Duplicati 2" as the log name because "Duplicati" may be registered as a source name.

* Attempt to stop service before uninstalling

* Added additional diagnostics messages

* Fixed bug with starting the agent as a service

* Default to not use WindowsService for Agent as it requires permissions to create the event log

* Reduced log message levels for ongoing communication in agent

* Prevent double-logging from agent into Windows EventLog

* Made the agent log under a separate log source name
2024-12-20 16:09:42 +01:00
Kenneth Skovhede f8043332eb Allow agent keeping password 2024-12-05 12:20:11 +01:00
Kenneth Skovhede 21ea4fc987 Added command to agent that just registers for remote control 2024-12-03 08:30:47 +01:00
Kenneth Skovhede 02855980af Changed the logic for random webservice password 2024-11-12 16:39:33 +01:00
Kenneth Skovhede 6b7f0ad877 Added missing option to disable the pre-shared key 2024-11-12 16:39:12 +01:00
Kenneth Skovhede 8250a5befa Refactored SecretProviderHelper to replace in Uri instances instead of raw string.
This fixes some issues with URL encoding/decoding.
Due to the legacy class `Duplicati.Library.Utility.Uri` there are two replacements done.
2024-11-04 15:57:56 +01:00
Kenneth Skovhede 9a89ca5a15 Cleaned up the use of the default pattern to use a single const value.
Added support for inheriting the secret pattern as it is more logical that all settings are carried through to the application.
2024-10-26 08:37:26 +02:00
Kenneth Skovhede 83bab97699 Adde option to register agent, then exit 2024-10-25 15:03:01 +02:00
Kenneth Skovhede f7e473e67e Fixed signature and nullability issues 2024-10-24 16:52:09 +02:00
Kenneth Skovhede 4b84135622 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-10-24 16:11:41 +02:00
Kenneth Skovhede 34d13a20e2 Initial version of the external secret provider 2024-10-24 16:06:59 +02:00
Kenneth Skovhede ee94233c84 Automatically opening the registration link via the system browser, if possible. 2024-10-17 14:25:41 +02:00
Kenneth Skovhede 9db3cce5e2 Added support for remote control with pre-signed url 2024-10-16 16:28:13 +02:00
Kenneth Skovhede ab6dbf9ca9 Fixed JWT validation from remote 2024-09-28 16:43:39 +02:00
Kenneth Skovhede cdbc3619d7 Added additional key-guard to prevent access to the API when running in Agent mode 2024-09-27 11:19:10 +02:00
Kenneth Skovhede 3bafe74c0a More work on getting the protocol fixed 2024-09-23 23:18:36 +02:00
Kenneth Skovhede 68c57bc64f Added certificate url for obtaining new certificates 2024-09-23 11:45:12 +02:00
Kenneth Skovhede 42fa5078e4 Fixed merging certificates when new certificates arrive 2024-09-20 16:58:05 +02:00
Kenneth Skovhede 550397cd70 Switched to using a single common certificate implementation 2024-09-20 09:42:21 +02:00
Kenneth Skovhede 5c0d297687 Implemented support for enabling remote control via settings 2024-09-19 14:33:17 +02:00
Kenneth Skovhede 669e90704d Initial work on supporting a secure remote control connection. 2024-09-18 11:07:59 +02:00