From 918873579bb5cd8b204dfa9d67bc807739dfff8d Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Wed, 14 Jan 2026 15:41:01 +0100 Subject: [PATCH] Windows paths must double escape backslash in json config --- Duplicati/UnitTest/RemoteSynchronizationModuleTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Duplicati/UnitTest/RemoteSynchronizationModuleTests.cs b/Duplicati/UnitTest/RemoteSynchronizationModuleTests.cs index 49499231c..dda7bb1ec 100644 --- a/Duplicati/UnitTest/RemoteSynchronizationModuleTests.cs +++ b/Duplicati/UnitTest/RemoteSynchronizationModuleTests.cs @@ -267,7 +267,7 @@ namespace Duplicati.UnitTest System.IO.File.WriteAllText(System.IO.Path.Combine(DATAFOLDER, "testfile.txt"), "test content"); var options = TestOptions; - options["remote-sync-json-config"] = @"{""destinations"": [{""url"": ""file://" + System.IO.Path.Combine(BASEFOLDER, "syncdest") + @"""}]}"; + options["remote-sync-json-config"] = @"{""destinations"": [{""url"": ""file://" + System.IO.Path.Combine(BASEFOLDER, "syncdest").Replace("\\", "\\\\") + @"""}]}"; options["dbpath"] = DBFILE; // Run actual backup @@ -1156,15 +1156,15 @@ namespace Duplicati.UnitTest {{ ""destinations"": [ {{ - ""url"": ""file://{syncDest1}"" + ""url"": ""file://{syncDest1.Replace("\\", "\\\\")}"" }}, {{ - ""url"": ""file://{syncDest2}"", + ""url"": ""file://{syncDest2.Replace("\\", "\\\\")}"", ""mode"": ""counting"", ""count"": 2 }}, {{ - ""url"": ""file://{syncDest3}"", + ""url"": ""file://{syncDest3.Replace("\\", "\\\\")}"", ""mode"": ""counting"", ""count"": 3 }}