Commit Graph
10149 Commits
Author SHA1 Message Date
Kenneth Skovhede 9e48de8e01 Merge branch 'master' of github.com:duplicati/duplicati 2018-03-22 08:32:48 +01:00
Kenneth Skovhede e9d477889f Fixed the order of arguments for throttling downloads.
This fixes part of #2890
2018-03-22 08:32:33 +01:00
Tyler Gill 077fcc78b1 Fix LogfilelogfiltersLong help parameter, so that running the main help page doesn't crash. 2018-03-21 17:09:37 -06:00
Tyler Gill 2d429f65a1 Removed the All FilterGroup, since it becomes ambiguous in light of the DefaultExclude and DefaultInclude groups. 2018-03-21 16:52:25 -06:00
Tyler Gill c63597ab6a Clean up some filters on Windows.
This includes prefixing registry filters with '?:' (to match existing filters and make sure Duplicati respects them).
It also includes removing absolute drive paths ("C:\Program Files") when there is an identical wildcard drive path ("?:\Program Files").
2018-03-21 16:43:22 -06:00
Tyler Gill e6aab76d8d Update documentation related to filter groups.
This removes the documentation for default filters, and replaces it with documentation about filter groups (based in large part on what was already included with the initial filter groups change).
All documentation about the --include and --exclude parameters should now mention (at least in passing) the option to use filter groups.
2018-03-21 16:40:42 -06:00
Tyler Gill 66cb44ead2 Rename FilterGroup.Default to DefaultExclude (since it will contain the default set of filters related to excluding files).
This way, we can still add future filter groups for types of files that should be backed up (e.g., documents, pictures, etc.)
In light of this, I think the All group is somewhat problematic, since if we add new groups that are designed for inclusion, we don't want people accidentally excluding them (because they --exclude={all}).
2018-03-21 16:21:30 -06:00
Tyler Gill 0f9be9e440 Remove code related to the --default-filters parameter.
The UI work to change over from the initial default filters UI still needs to be done.
2018-03-21 16:18:14 -06:00
Tyler Gill fc23a2dbbd FilterEntry should use FilterGroups.ParseFilterList instead of Enum.TryParse directly.
Additionally, ParseFilterList now supports a number of (shorter) aliases for each group.
2018-03-21 15:08:10 -06:00
Tyler Gill baeb7e6a7c Added a new FilterType which is used by FilterEntry to represent a filter that should affect all files in one of the built-in filter groups.
This allows filter groups to be intermingled with other filters using the '{groupName}' syntax proposed by kenkendk.
It also means that when the filter that caused a file to be ignored is reported, it can report the name of the group, rather than a large and unreadable list of wildcard and regex patterns.
This is still missing several things (better documentation, removing the old --default-filters parameter, updating the UI), but should be another step in the right direction.
There might also might easily be other side effects that I haven't considered here that will need to be teased out and fixed.
2018-03-21 14:53:45 -06:00
Kenneth SkovhedeandGitHub e544b871dc Update README.md
Added link to the manual
2018-03-21 21:26:10 +01:00
Tyler Gill 03df606a80 Merge branch 'feature/filter_groups' of https://github.com/duplicati/duplicati into feature/filter-groups 2018-03-21 12:23:03 -06:00
Tyler Gill 438c84f824 Ensure custom fragment sizes fit the recommended sizes (under 60 MiB and multiple of 320 KiB) 2018-03-21 11:32:41 -06:00
Tyler Gill 97a93a071f Make m_oauth readonly in OAuthHttpMessageHandler. 2018-03-21 11:23:50 -06:00
Tyler Gill 55c182b946 Strip authorization header and access token out of Microsoft Graph exception messages. 2018-03-21 11:16:27 -06:00
Tyler Gill 6c05da925e Explicitly request the 'replace' conflict resolution behavior when uploading large files. 2018-03-20 15:28:57 -06:00
Tyler Gill dbb28c5f62 Make sure DNS names reported by Microsoft Graph backends are unique. 2018-03-20 15:26:52 -06:00
Tyler Gill 5646e3de9d Add a test for the DNSName property to the BackendTester and report the DNS names it returns. 2018-03-20 15:26:17 -06:00
Tyler Gill c57d7e75cd Add helpId parameter to UserInformationExceptions in MicrosoftGraphBackends. 2018-03-20 15:09:06 -06:00
Tyler Gill 94341a640d Implement DNSName method in MicrosoftGraphBackend base class. 2018-03-20 15:08:30 -06:00
Tyler Gill f4c6100873 Add Duplicati + version as the user agent in the MS Graph backends. 2018-03-20 15:07:46 -06:00
Tyler Gill 4578a5bd91 Merge branch 'master' of https://github.com/duplicati/duplicati into feature/ms-graph-backends 2018-03-20 14:24:48 -06:00
Tyler Gill a98c967f70 Add new backends for OneDrive+OneDrive for Business, SharePoint, and Microsoft Groups based on the Microsoft Graph API.
These backends are implemented via the common base class, MicrosoftGraphBackend, with only a few minor tweaks (different id parameters, protocol keys, descriptions, etc.)
All three backends support streaming, quota retrieval, and rename.
2018-03-20 14:18:49 -06:00
Tyler Gill c542d65997 Update service agreement and privacy policy link for OneDrive backend. 2018-03-20 14:01:28 -06:00
Tyler Gill 20fc793dee Add OAuthHttpMessageHandler helper class to OAuthHelper library.
This class implements the abstract HttpMessageHandler class (mostly via the default HttpClientHandler implementation).
This abstract class is used by System.Net.Http.HttpClient as the underlying HTTP mechanism, and in this particular case is used to automatically add an authorization header to each request.
It also provides a method for marking a request as one that should not be authenticated.
2018-03-20 14:00:52 -06:00
Tyler Gill f9a8b30b2f Update JSONWebHelper.PostAndGetJSONData to remove parameters that aren't actually being used (setup and setupreq).
These parameters weren't being used in the method body, or being passed in by any callers (it looks like a copy / paste error when a previous method was converted into this one)
These are replaced with a new optional parameter (method) which allows the caller to request a custom HTTP method to be used.
2018-03-20 13:56:05 -06:00
Tyler Gill 4e4b9a56d6 Adds a test to the BackendTester for quota-enabled backends.
This test simply loads the quota information and displays it (or displays an error if the backend was unable to get it)
2018-03-20 13:53:32 -06:00
Tyler Gill dba0b3772e Add a test to BackendTester for backends which support renaming.
This is done by renaming the second file (or first if only one file is being created) and updating the in memory set of expected files,
while keeping track of the original info so it can be reported if it is still present (e.g., if the rename operated as a copy instead).
2018-03-20 13:50:06 -06:00
Tyler Gill cff8f172fc Add support for 'trim-filename-spaces' flag to BackendTester.
This flag ensures that any randomly generated file names don't have leading or trailing whitespace, which some backends might not support.
2018-03-20 13:48:21 -06:00
Tyler Gill 00c1a296da BackendTester should explicitly call Test() when performing the initial check to see if the main folder exists.
Without this, the auto create folders flag was broken for backends which lazily enumerate List() (as they instead throw after the try block is ended)
Calling Test() dierctly also better matches the IBackend interface contract.
2018-03-20 13:46:49 -06:00
Tyler Gill 2b4fb9a65f SizeParser can use OrdinalIgnoreCase instead of ToLower(). 2018-03-20 13:44:15 -06:00
Tyler Gill 73b6fe2a01 Add extension methods to the general Utility class for emulating the await keyword in non-async code.
Using GetAwaiter().GetResult() is similar to using Task.Result, but rethrows the original exception rather than wrapping it in an (unnecessary) AggregateException.
2018-03-20 13:41:57 -06:00
Kenneth SkovhedeandGitHub 3ec2b78828 Merge pull request #3086 from warwickmm/feature/disable_on_battery
Add option to disable backup when on battery power
2018-03-20 09:19:01 +01:00
Kenneth SkovhedeandGitHub 6545b5cfa4 Merge pull request #3109 from warwickmm/fix_xml_ampersand
Fix encoding of ampersand in XML documentation
2018-03-20 09:01:48 +01:00
Kenneth SkovhedeandGitHub f804eaa7ab Merge pull request #3108 from warwickmm/readonly_lock_objects
Make fields containing lock objects readonly
2018-03-20 09:01:22 +01:00
Kenneth Hsu c00c6fd19b Make fields containing lock objects readonly.
If one of these fields is accidentally reassigned, it's possible for
threads to be oblivious to an existing lock.  By making the fields
readonly, we will be notified at compile-time if we inadvertently
redefine one of these fields.
2018-03-17 19:59:23 -07:00
Kenneth Hsu 10e127b2a9 Properly encode ampersand in XML content. 2018-03-17 13:56:19 -07:00
Kenneth Hsu 85214aaf9a Warn that option is ignored by manual or command-line backups. 2018-03-16 19:32:50 -07:00
Kenneth Hsu e2aa98fbca Add option to disable backup when on battery power.
This addresses issue #2666.
2018-03-16 19:32:50 -07:00
Kenneth Skovhede a980ed93a6 Implemented support for setting low IO priority on Windows, Linux, and MacOS 2018-03-16 23:25:06 +01:00
Kenneth Skovhede 20e2dcafb3 Moved the process control stuff into another class, so it can be disposed easily and contain its own state 2018-03-16 10:33:26 +01:00
Kenneth Skovhede 883922e2f3 Version bump to v2.0.3.2-2.0.3.2_canary_2018-03-16
You can download this build from:

Binaries: https://updates.duplicati.com/canary/duplicati-2.0.3.2_canary_2018-03-16.zip

Signature file: https://updates.duplicati.com/canary/duplicati-2.0.3.2_canary_2018-03-16.zip.sig

ASCII signature file: https://updates.duplicati.com/canary/duplicati-2.0.3.2_canary_2018-03-16.zip.sig.asc

MD5: aaced24431484aad1675b010e93b3ed8

SHA1: 0f81c26c8974f7d9e2ee4d104dcbd2aff44f9a96

SHA256: 6c9357f801a9570cee7bb04f19902bbb2cc8cc7a91ed3c7547e6bf6d0ce134c8
v2.0.3.2-2.0.3.2_canary_2018-03-16
2018-03-16 09:59:44 +01:00
Kenneth Skovhede f247799a4b Merge branch 'release/2.0.3.1_experimental'
# Conflicts:
#	Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
#	Updates/build_version.txt
#	build-release.sh
#	changelog.txt
2018-03-16 09:27:41 +01:00
Kenneth Skovhede 4cf87c9bbd Version bump to v2.0.3.1-2.0.3.1_experimental_2018-03-16
You can download this build from:

Binaries: https://updates.duplicati.com/experimental/duplicati-2.0.3.1_experimental_2018-03-16.zip

Signature file: https://updates.duplicati.com/experimental/duplicati-2.0.3.1_experimental_2018-03-16.zip.sig

ASCII signature file: https://updates.duplicati.com/experimental/duplicati-2.0.3.1_experimental_2018-03-16.zip.sig.asc

MD5: fe2ddbf6031c62b64b3cfae3fac22193

SHA1: fe7215fe60ce72fedbc60a5efb10a4842a969c5d

SHA256: 1c27ef74e4ce7a47844d7f7d1cc645a46625590d9271bf60c638b5df8b678604
v2.0.3.1-2.0.3.1_experimental_2018-03-16
2018-03-16 09:15:59 +01:00
Kenneth SkovhedeandGitHub 99479344f7 Merge pull request #3095 from Pectojin/notification_repair_button
added repair button to the 'please repair' notification
2018-03-16 08:45:13 +01:00
Kenneth SkovhedeandGitHub 4f5d09f93d Merge pull request #3096 from Pectojin/system_info_add_username_and_startedby_variables
added 'UserName' and 'StartedBy' variables to the system info page
2018-03-16 08:41:55 +01:00
Kenneth SkovhedeandGitHub 9f63caae4e Merge pull request #3092 from piegamesde/master
Made python script run in parallel
2018-03-16 08:40:51 +01:00
Kenneth Skovhede e124329f1e Merge branch 'feature/improved-logging' 2018-03-16 08:38:14 +01:00
Kenneth Skovhede 3ec6b88ac8 Added a repeating log-scope that writes out a message, if no activity produced a log message for 10 seconds 2018-03-15 23:30:24 +01:00
Kenneth Skovhede 04d5a7fcb2 Removed output spam from a unittest 2018-03-15 12:29:53 +01:00