From ea82284a78165b6bf0d4e2df1927f0def20dc86f Mon Sep 17 00:00:00 2001 From: "kenneth.skovhede@gmail.com" Date: Thu, 15 Jan 2009 14:47:05 +0000 Subject: [PATCH] A not-so-robust-but-working version of the SSH backend is ready. git-svn-id: https://duplicati.googlecode.com/svn/trunk@65 59da171f-624f-0410-aa54-27559c288bec --- Duplicati/CommandLine/UnitTest.cs | 4 + Duplicati/Library/Backend/FTP/FTPBackend.cs | 4 +- .../SSH/Duplicati.Library.Backend.SSH.csproj | 4 + Duplicati/Library/Backend/SSH/SSHBackend.cs | 199 +++++++++++++++++- 4 files changed, 203 insertions(+), 8 deletions(-) diff --git a/Duplicati/CommandLine/UnitTest.cs b/Duplicati/CommandLine/UnitTest.cs index 7e7482900..b3444ea0a 100644 --- a/Duplicati/CommandLine/UnitTest.cs +++ b/Duplicati/CommandLine/UnitTest.cs @@ -93,7 +93,11 @@ namespace Duplicati.CommandLine Console.WriteLine("Backing up the full copy: " + folders[0]); using (new Timer("Full backup of " + folders[0])) + { + options["full"] = ""; Duplicati.Library.Main.Interface.Backup(folders[0], target, options); + options.Remove("full"); + } for (int i = 1; i < folders.Length; i++) { diff --git a/Duplicati/Library/Backend/FTP/FTPBackend.cs b/Duplicati/Library/Backend/FTP/FTPBackend.cs index 3be88bfe1..5b1b801e8 100644 --- a/Duplicati/Library/Backend/FTP/FTPBackend.cs +++ b/Duplicati/Library/Backend/FTP/FTPBackend.cs @@ -75,7 +75,7 @@ namespace Duplicati.Library.Backend #endregion - private Match MatchLine(string line) + private static Match MatchLine(string line) { Match m = null; foreach (Regex s in PARSEFORMATS) @@ -85,7 +85,7 @@ namespace Duplicati.Library.Backend return null; } - private FileEntry ParseLine(string line) + public static FileEntry ParseLine(string line) { Match m = MatchLine(line); if (m == null) diff --git a/Duplicati/Library/Backend/SSH/Duplicati.Library.Backend.SSH.csproj b/Duplicati/Library/Backend/SSH/Duplicati.Library.Backend.SSH.csproj index 10e18cf2a..4b2e45c7f 100644 --- a/Duplicati/Library/Backend/SSH/Duplicati.Library.Backend.SSH.csproj +++ b/Duplicati/Library/Backend/SSH/Duplicati.Library.Backend.SSH.csproj @@ -41,6 +41,10 @@ {994F3D0A-E91E-4EEE-80EE-064485E09909} Duplicati.Library.Backend.BackendInterface + + {F61679A9-E5DE-468A-B5A4-05F92D0143D2} + Duplicati.Library.Backend.FTP +