Commit Graph
585 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub ec1975b5a7 Merge pull request #4269 from warwickmm/target_net_471
Target .NET Framework 4.7.1
2020-08-07 10:50:35 +02:00
Dean Ferreyra 73e31a79a1 Change tests to work with long paths in Windows
Even in .NET 4.6.2
`System.IO.Compression.ZipFile.ExtractToDirectory()` cannot handle
long paths.  Replace call to
`System.IO.Compression.ZipFile.ExtractToDirectory()` with an
equivalent that extracts files to a temporary location and uses I/O
functions that support long paths to move them to their final
location.

In CommandLineOperationsTests.cs, use ISystemIO functions to handle
potentially long paths.

Add a fix to RecoveryTool for long paths that was missed by #4258.

This fixes #3863.
2020-07-28 05:51:53 -07:00
Kenneth Hsu e964072690 Target .NET Framework 4.7.1.
This updates all projects to target .NET Framework 4.7.1.  The
TencentCOS and Tardigrade backends depend on .NET Standard 2.0.  When a
.NET Framework prior to 4.7.1 is targeted, the system cannot be sure
that all the dependencies exist, so it copies all dependent assemblies
to the output directory.  This causes many assemblies from the System
namespace to become bundled in the release.

https://stackoverflow.com/a/48875007

We had previously attempted to make individual projects target 4.7.1
(see pull request #4242), but this can cause compatibility issues when
4.6.2 projects depend on 4.7.1. projects.

This will require Mono 5.10.0 or greater (previously, we required 5.0.0
or greater).

https://www.mono-project.com/docs/about-mono/releases/5.10.0/#class-libraries

This fixes issue #4234.
2020-07-26 19:46:01 -07:00
warwickmmandGitHub e7daffcb31 Merge pull request #4256 from dferreyra/support_problematic_windows_paths
Support problematic Windows paths that end with spaces or periods.
2020-07-25 17:48:50 -07:00
Dean Ferreyra f53876d0a4 Fix Recovery Tool handling of paths with dashes
In Duplicati.CommandLine.RecoveryTool, the `index` and `list` commands
do not recognize Duplicati backup files when those files are in paths
containing dashes.

For example, without this change, if you call
```
Duplicati.CommandLine.RecoveryTool index C:\Temp\duplicati-tests\recovery-tool\backup-files
```
the Duplicati backup files are displayed, but the recovery tool
reports "Not a Duplicati file, ignoring" for each of them.
2020-07-19 18:01:52 -07:00
Dean Ferreyra fd186712b4 Support problematic Windows paths
Change "Duplicati.CommandLine.RecoveryTool restore" to support
restoring long paths, and files and directories that end in a dot or a
space when run on Windows.
2020-07-19 06:43:30 -07:00
wood 07815740fd add dependency 2020-06-30 10:39:52 +08:00
Kenneth Hsu 3db08121ae Fix project references to Tardigrade backend. 2020-05-30 12:10:07 -07:00
Kenneth Skovhede 3313f46b80 Include Tardigrade reference in all projects that include backends, as this makes it easier to use when debugging 2020-05-28 09:53:24 +02:00
TopperDEL ba82edf7f8 fix: Correct Package-References 2020-05-19 16:11:58 +02:00
TopperDEL 6cda666b10 Merge branch 'master' of https://github.com/duplicati/duplicati into Tardigrade 2020-05-15 12:59:48 +02:00
Kenneth Skovhede e667602351 Added project dependencies to the commandline tester to make it run again. 2020-05-10 14:16:01 +02:00
TopperDEL 547d883aab Add additional references, small corrections 2020-05-01 21:37:27 +02:00
Kenneth Hsu 87c1fa5a04 Fix compiler warning about unused variable. 2020-03-29 19:17:37 -07:00
Tyler Gill e742205f65 Add --use-http-client=false parameter to backends based on Microsoft Graph APIs (OneDrive v2, SharePoint v2, etc.) to make them use the OAuthHelper and HttpWebRequest infra used by most / all other backends for HTTP requests. This lives in parallel to the original implementation that uses the OAuthHttpClient class, but is intended to see if this prevents the memory leaks and problems seen in some versions of Mono when using the OneDrive v2 backend. 2020-03-23 14:10:40 -06:00
Kenneth Hsu 3551238000 Remove redundant calls to String.Format. 2020-01-25 17:07:02 -08:00
Kenneth Hsu a734a365a3 Minor code cleanup. 2020-01-23 20:41:17 -08:00
Kenneth Hsu dce5943864 Create index in memory by default but allow option to use files.
Performance is greatly improved if we can create the index in memory.
We preserve the ability to create the index using files for recovery in
low resource environments.
2020-01-23 20:41:17 -08:00
Kenneth Hsu 3c778025f4 Salvage file-based index for recovery in low memory situations.
We will plan to default to the in-memory index, but allow one to use the
file-based index if the memory requirements are too high.
2020-01-23 20:31:43 -08:00
thomas.friedelandKenneth Hsu 8848ad4a74 use SortedDict to sort index in memory 2020-01-23 20:07:29 -08:00
Kenneth Hsu 25d7cea6c7 Dispose of HashLookupHelper after use.
The HashLookupHelper contains an open FileStream that needs to be
closed.
2020-01-18 14:44:05 -08:00
Kenneth Hsu bfbae6fcaf Add test for restoring files using RecoveryTool. 2020-01-18 09:36:03 -08:00
Kenneth Hsu 53a35e6e06 Remove support for Amazon Cloud Drive.
Amazon discontinued access to the Cloud Drive API.

See https://forum.duplicati.com/t/amazon-cloud-drive-discontinued/7391.
2019-12-01 10:36:36 -08:00
Kenneth Hsu afab61a05b Use pattern matching to simplify casts. 2019-10-19 10:15:38 -07:00
Kenneth SkovhedeandGitHub 0e75611b34 Merge pull request #3931 from warwickmm/fix_parameter_file_alias
Fix parameter file alias
2019-10-19 14:09:11 +02:00
drwtsn32x fa82263865 read tempdir command line option 2019-10-05 06:20:57 -07:00
Kenneth Hsu df2904b781 Fix parameter file alias.
The code that parsed the parameter file aliases was improved in pull
request #3229.  In doing so, we accidentally omitted one of the
previously accepted aliases.
2019-09-29 19:17:38 -07:00
BlueBlock 6a9f605e43 Merge remote-tracking branch 'upstream/master' into gpg-update 2019-08-31 19:01:57 -04:00
BlueBlock c7005ca95b remove system.net nuget packages
we should rely on the system.net packages on the system
2019-08-04 15:33:56 -04:00
BlueBlock e6588fbfc2 adjust config for known bug
A known bug causes the incorrect config entry for system.net.http where we must be adjusted to 4.2.0.0
This bug gets fixed in .NET 4.7.2
2019-08-04 15:32:10 -04:00
BlueBlock d281f67570 change exe projects to true for AutoGenerateBindingRedirects
resolves build warning for mismatching assemblies
2019-08-03 20:44:22 -04:00
BlueBlock 815e30b63b update csproj toolverion and nuget packages 2019-07-31 13:20:03 -04:00
BlueBlock 1530eb5c1e change ConfiguraitonImporter to enable AutoGenerateBindingRedirects
needed for Mono build
2019-07-30 12:19:31 -04:00
BlueBlock f3ac04e49a nuget packages updated to keep current
and important to keep the aws sdk current
2019-07-30 09:36:38 -04:00
BlueBlock 08a1e9998a initial upgrade to framework 4.6.2
- no code changes except those noted below
- projects upgrade to 4.6.2
- wixinstaller project upgraded automatically by VisualStudio
- wixinstaller updated to require 4.6.2
- Library.Encryption changed to Standard2.0 so accommodate update to SharpAesCrypt
2019-07-26 09:18:16 -04:00
BlueBlock 689e9fad4d Fix codacy issues 2019-07-25 11:29:17 -04:00
BlueBlock 2aad1ca558 Refactored code for getting gpg path 2019-07-25 11:14:45 -04:00
BlueBlock 4884fda0c6 Add ability for gpg encryption to use the Windows gpg4win installed gpg.exe if it exists 2019-07-20 15:04:07 -04:00
Kenneth Skovhede 86e3e97692 Pin version to work better with the build script 2019-05-12 21:46:40 +02:00
Kenneth Hsu f4c886e8f8 Add comment to explain unused method. 2019-05-06 20:03:21 -07:00
Kenneth Hsu 246071b6ba Revert "Remove unused YouMayGetMoreHelpHere method."
This reverts commit 2c9fabd2ed.

This is a placeholder message that is intended to be used with the code
for each error and log message. The idea is that the commandline will
use the code to provide a link to the forum, searching for the code,
such that it is easy to maintain a list of help links.
2019-05-06 20:02:55 -07:00
Kenneth Hsu 2ce23c647a Remove unused ConsoleLogTarget class.
This was introduced in revision 842fd96543
without any apparent usages.
2019-04-27 16:16:22 -07:00
Kenneth Hsu 2c9fabd2ed Remove unused YouMayGetMoreHelpHere method. 2019-04-27 16:12:39 -07:00
Kenneth SkovhedeandGitHub 83bb725dc6 Merge pull request #3740 from warwickmm/remove_unused_local_variables
Remove unused local variables
2019-04-25 13:22:39 +02:00
Kenneth Hsu 457254d9e1 Remove unused local variables. 2019-04-17 20:10:53 -07:00
Kenneth Hsu f9419ca9eb Make ConfigurationImporter class static.
This class is not meant to be instantiated.
2019-04-14 12:52:54 -07:00
Kenneth Hsu f777b49d7c Move ConfigurationImporter project files to reflect namespace.
This places the files in a location that is more consistent with the
other command line tools.
2019-04-14 12:46:34 -07:00
Kenneth SkovhedeandGitHub 57b28182cb Merge pull request #3684 from seantempleton/parallelupload
Implement parallel uploads to a single backend
2019-03-19 08:41:33 +01:00
Sean Templeton b02b19e683 Change Put method name to PutAsync 2019-03-17 18:28:45 -05:00
Sean Templeton 662627a98a Update AlternativeFtp Backend for async Put
Removed System.Net.FtpClient and added the FluentFTP Nuget package which
is the new name of System.Net.FtpClient.
2019-03-03 21:43:13 -06:00