Commit Graph
680 Commits
Author SHA1 Message Date
René StachandGitHub 8f660bae22 Switch address to same as restore dialog in UI 2017-10-28 10:27:09 +02:00
René StachandGitHub db0a81736c Update Bitcoin address in CLI 2017-10-28 10:23:48 +02:00
Kenneth Hsu 3d51e9153b Avoid signing assemblies.
Using strong-named assemblies can cause difficulties with the GNU LGPL
license, which allows for one to recombine or relink their application
with modified versions of the code.  While one solution is to share the
private key so that people can sign the assemblies themselves, this
would break the trust that is expected from signed assemblies.  For now,
the easiest fix is to simply not sign the assemblies.  Note that by
doing so, we prevent the code from being referenced from other signed
assemblies.

This also fixes an issue introduced in revision ba94d36a80 ("Added
auto-update for WindowsService and Service."), where the WindowsService
project (signed) referenced the AutoUpdater project (not signed).

We also removed instances of <SignAssembly>false</SignAssembly> to be
consistent with newly created .csproj files that do not contain the
SignAssembly element.

This was motivated by the discussion in issue #2814.
2017-10-15 22:00:23 -07:00
Kenneth SkovhedeandGitHub 33314ce7c9 Merge pull request #2763 from tygill/fix/list-ienumerable
Change IBackend.List() to return IEnumerable instead of List
2017-09-28 11:06:41 +02:00
Kenneth SkovhedeandGitHub 11be1ba73b Merge pull request #2770 from warwickmm/bugfix/bad_string_format_item
Fix incorrect format item in format string
2017-09-28 11:02:54 +02:00
Kenneth Hsu 4673fe8eee Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 21:32:58 -07:00
Kenneth Hsu bd98273067 Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 21:01:33 -07:00
Kenneth Hsu 210ecdf118 Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 21:00:19 -07:00
Kenneth Hsu ce1577fbc2 Fix incorrect format item in format string. 2017-09-26 19:32:08 -07:00
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Kenneth Skovhede 6c921ab3ec Merge branch 'master' of github.com:duplicati/duplicati 2017-09-23 22:01:08 +02:00
Kenneth SkovhedeandGitHub ef3eb1854a Merge pull request #2752 from tygill/feature/onedrive-quota-rename
Add support for the quota reporting and renaming interfaces to the OneDrive backend
2017-09-23 15:05:22 +02:00
Kenneth Skovhede a06f38442a Updated all Newtonsoft.Json packages 2017-09-23 00:25:50 +02:00
Tyler Gill 1498941052 Update command line message. 2017-09-22 00:31:15 -06:00
Tyler Gill 7c3ce32ee2 Add support for the quota reporting and renaming interfaces to the OneDrive backend.
To test the quota support, quota information is reported on the command line if it is available.
However, the rename support hasn't been tested, since I don't see anything using that functionality yet.
2017-09-22 00:30:10 -06:00
Tyler Gill 811acac073 Fix warning that the default-filters parameter isn't supported. 2017-09-21 23:44:24 -06:00
Kenneth Skovhede e344a10ee5 Merge branch 'feature/use-cng-hashalgorithms' 2017-09-20 10:27:58 +02:00
Kenneth Skovhede 6d401fbd8d Changed all hash algorithms to use the Cng version.
This fixes #2621
2017-09-20 09:58:43 +02:00
Tyler Gill cf79aedb2d Followup to the change to add default filters and change InvariantCultureIgnoreCase to OrdinalIgnoreCase. 2017-09-19 09:23:01 -06:00
Kenneth SkovhedeandGitHub c386da0b33 Merge pull request #2741 from tygill/fix/string-compare-ordinal-ignore-case
Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase
2017-09-19 11:07:20 +02:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Tyler Gill 3fc4868433 Merge branch 'master' of https://github.com/duplicati/duplicati into feature/default-filters
# Conflicts:
#	Duplicati/Library/Utility/Utility.cs
2017-09-18 23:13:13 -06:00
Tyler Gill 1da75e8859 Remove the Platform and Common filter sets. They aren't really very useful.
Common is now always included with default filters.
The Platform behavior (of using the set corresponding to the current operating system) is available by using the flag without giving it a value.
2017-09-18 23:03:15 -06:00
Tyler Gill f9618b9587 Add support for specifying backup paths by volume guid.
These volume guids can be found via the 'mountvol' command, and are reported by the built in help.
This also includes some updates to the documentation and logging when using wildcard drives in source paths.
2017-09-14 23:16:07 -07:00
Tyler Gill 768cd93923 Normalize some whitespace 2017-09-13 22:30:12 -07:00
Tyler Gill 93994850f9 Merge branch 'master' of https://github.com/duplicati/duplicati into feature/default-filters
# Conflicts:
#	Duplicati/CommandLine/Help.cs
2017-09-13 22:25:12 -07:00
Tyler Gill d4865eb4cd Add default filters parameter, and some built-in default filter sets.
These sets are essentially blacklists for many common files and paths on different platforms that don't need to be backed up.
2017-09-13 22:21:12 -07:00
Kenneth SkovhedeandGitHub f9b31fde5e Merge pull request #2712 from tygill/fix/send-mail-level-help
Add Fatal and All to the list of levels for --send-mail-level in the help
2017-09-12 13:27:39 +02:00
Tyler Gill 875266810f Add Fatal and All to the list of levels for --send-mail-level in the help. 2017-09-11 23:08:10 -07:00
Tyler Gill 5c7500973e Add support for wildcards in source paths on Windows.
This causes backup to run for the given path on all drives, and can be useful in the case where removable drives may change letters randomly.
2017-09-10 13:18:49 -07:00
Ulf Hedlund 5e1eb0b718 Added Sia as a backend provider 2017-08-31 22:37:04 +02:00
Dan Stahr 8c2280c86c Issue #2578: Removed all direct calls to VACUUM and added a command to run VACUUM manually 2017-08-04 11:24:18 +01:00
Kenneth Skovhede a0d9ad5d4e Changed --backup-prefix hint texts to --prefix.
This fixes #2548
2017-06-19 22:06:35 +02:00
Dan Stahr dd20278690 Make Jottacloud available to public. 2017-06-10 11:15:06 +01:00
Kenneth Skovhede ae1e221dec Merge branch 'feature/fix_commandline_error_message' 2017-06-02 12:16:36 +02:00
Kenneth Skovhede d5f06c6b40 Fixed the error message not showing the arguments in the mesage 2017-06-02 11:24:26 +02:00
Kenneth Skovhede 2b2e495e15 Added the <Prefer32Bit>False</Prefer32Bit> option to all executables.
This fixes #2519
2017-06-02 09:42:29 +02:00
Kenneth Skovhede 046b522a8d Updated NewtonSoft.Json 2017-05-17 11:08:51 +02:00
Kenneth Skovhede 2e7a5e0daf Improved the backendtool to support full paths as the filenames 2017-04-05 22:44:07 +02:00
Kenneth Skovhede 4fa6cfe6cf Merge branch 'feature/improved_verify_output' into feature/commandline_ui
# Conflicts:
#	Duplicati/CommandLine/Commands.cs
2017-04-04 23:56:11 +02:00
Kenneth Skovhede 5bbb484cd3 Rewrote ListAffected and ListChanges to support a callback, such that the entire lists are not required to be materialized 2017-04-04 23:53:36 +02:00
Kenneth Skovhede d1746ca38c Added a --full-result commandline option to allow getting full file listings, without verbose output 2017-04-04 23:51:40 +02:00
Kenneth Skovhede fc8a2cb4b9 Improved the output from the verify option with both --verbose and without 2017-04-04 17:26:26 +02:00
Kenneth Skovhede 6855824285 Rewrote the commandline to support plug-able output 2017-04-04 16:57:30 +02:00
Kenneth Skovhede 2ee110abb3 Added fix for faster commandline startup to the other commandline tools 2017-03-13 09:26:22 +01:00
frelis 7d081d1628 Remove sencod call
Removed second call of the IgnoreWebrootFolder because the calls is
shared
2017-03-09 08:47:02 +01:00
frelis 397c769119 Update manager : Ignore webroot Folder
Added a property to ignore, if set, the webroot folder, when checking if
the update packages  are not tampered

fixes duplicati/duplicati#2266
2017-03-08 14:50:59 +01:00
Kenneth Skovhede 7349d73e80 Fixed returning non-zero status codes when verification fails 2017-03-07 23:09:04 +01:00
Kenneth Skovhede 9e6eefad9f Merge branch 'feature/add_single_result_code'
# Conflicts:
#	Duplicati/Library/Modules/Builtin/Strings.cs
2017-01-23 23:32:30 +01:00
Kenneth Skovhede d20a244beb Some missing saves 2017-01-23 22:17:39 +01:00