Commit Graph
275 Commits
Author SHA1 Message Date
Kenneth Skovhede bceed2ffbe Work on adding filters to send-mail 2018-04-02 11:20:46 +02: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 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 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 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 SkovhedeandGitHub 96cd4dd725 Merge pull request #3087 from warwickmm/use_nameof_operator
Use nameof operator when constructing ArgumentNullException
2018-03-08 11:14:49 +01:00
Kenneth SkovhedeandGitHub 0e9eb4a452 Merge pull request #3088 from warwickmm/bugfix/remove_extra_tag
Remove superfluous closing tag in XML documentation.
2018-03-08 11:14:29 +01:00
Kenneth Hsu ec7aa3113b Fix namespace in code references in XML documentation. 2018-03-07 18:34:26 -08:00
Kenneth Hsu 58ab443eb4 Fix generic class code references in XML documentation. 2018-03-07 18:34:26 -08:00
Kenneth Hsu a7faab50ca Remove superfluous closing tag in XML documentation. 2018-03-07 18:03:10 -08:00
Kenneth Hsu 1f8b542604 Use nameof operator when constructing ArgumentNullException.
This will make rename refactorings easier in the future.
2018-03-07 17:53:08 -08:00
Kenneth SkovhedeandGitHub e04f0236bb Merge pull request #3052 from tygill/fix/default-filter-trim
Remove some default filters for things that should probably still be backed up
2018-03-02 09:18:14 +01:00
Kenneth Skovhede c9be651690 Removed application of default filters, pending discussion 2018-02-22 17:17:12 +01:00
Tyler Gill 25df361c3e Remove some default filters for things that should probably still be backed up. 2018-02-13 13:11:16 -07:00
Kenneth SkovhedeandGitHub f6bb6d3d4f Merge pull request #2995 from TekkiWuff/bugfix/issue-2994
Use double instead of long for Utility.FormatSizeString
2018-02-08 22:02:44 +01:00
Pectojin f6242e3774 Added an overloaded AddTask method that allows tasks to skip the queue and updated the api call backup/<id>/run to skip the queue to correspond with the expectation of the 'Run now' button in the UI 2018-02-03 04:17:10 +01:00
Daniel Radünz dab0e1102b Fixed issue 2994 2018-01-30 23:49:58 +01:00
Kenneth Skovhede bf07f70318 Added method to automatically create folder for async upload.
This fixes #1384
2018-01-26 09:22:21 +01:00
JonMikelVandGitHub 47d5e8877e Merge pull request #4 from duplicati/master
Merge from master
2018-01-21 02:14:37 -06:00
Kenneth Skovhede d9377bab7e Removed TempFileStram and fixed the two places that were using it, as they both had errors in the way it was used. 2018-01-18 14:25:25 +01:00
JonMikelV 95a768feaa FormatSizeString now will also format negative values such as produced when reporting on space savings due to compacting. 2018-01-04 23:05:01 -06:00
Kenneth Hsu 056ff3da96 Use built-in method to determine if process is 64-bit. 2018-01-02 19:03:46 -08:00
Kenneth SkovhedeandGitHub 9593edae14 Merge pull request #2939 from vnau/master
Compression classes refactoring
2017-12-26 12:27:35 +01:00
vnau e78c3f8650 Removed throw expressions to avoid Microsoft compiler bug. 2017-12-25 22:59:17 +07:00
vnau 62a7901aca Compression modules refactored to work with streams instead of filenames;
Added unit test to check compression reversibility
2017-12-25 04:12:19 +07:00
Kenneth Skovhede 954980b013 Merge branch 'feature/fix_windows_cmd_escape' 2017-12-22 10:05:53 +01:00
Kenneth Skovhede 486ea11fbd Fixed a case where the commandline arguments were not correctly escaped.
This fixes #2907
2017-12-20 22:45:44 +01:00
Kenneth Hsu bbebcdf3c9 Use method to parse string into bool to reduce duplication. 2017-12-17 14:52:29 -08:00
Kenneth Hsu 788a1db877 Add overload for method that parses string into bool.
This is useful for cases where the default value is expensive to
compute.  By specifying the default via a delegate, it is not computed
unless it is needed.
2017-12-17 14:52:29 -08:00
Kenneth Hsu aac3bc5d87 Remove invalid XML documentation element for void method. 2017-12-09 18:42:33 -08:00
Kenneth Hsu ab489d9a28 Make parameter names in XML documentation match code. 2017-12-09 18:42:30 -08:00
Kenneth Hsu 1c7391399d Remove XML documentation for unmatched parameters. 2017-12-09 18:30:01 -08:00
Kenneth SkovhedeandGitHub 36aadc4ad1 Merge pull request #2910 from warwickmm/refactor/remove_redundant_tostring
Remove redundant calls to ToString
2017-11-27 08:50:00 +01:00
Kenneth Hsu 5fb1958ceb Remove redundant calls to ToString. 2017-11-26 15:44:34 -08:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Skovhede b42ab42e57 Fixed the updater to use the argument escaping code from utilities.
This fixes #2891
2017-11-22 10:39:02 +01:00
Kenneth Skovhede 6564220df0 Implemented a utility method for escaping commandline arguments 2017-11-21 23:41:02 +01:00
Kenneth Skovhede e1a0ca06d5 Change .rbf filter to only exclude .rbf files in the config.msi subfolder.
This fixes #2886
2017-11-21 13:52:56 +01:00
Kenneth Skovhede 4ff446d521 Merge branch 'master' of github.com:duplicati/duplicati 2017-11-21 13:50:44 +01:00
Kenneth Skovhede 4fd9e41703 Added some documentation strings and a missing "else" that was causing a crash.
This fixes #2858
2017-11-19 17:48:39 +01:00
Kenneth SkovhedeandGitHub c115d07f83 Merge pull request #2836 from warwickmm/feature/no_tilde_expansion
Avoid performing tilde expansion
2017-11-18 23:06:54 +01:00
Tyler Gill ae1f69b5e8 Only try to load Windows registry filters on Windows.
The reason for this is that Windows filters may be used on other systems (e.g., to ignore Windows files when backing up a Windows drive)
2017-11-15 20:56:24 -08:00
Kenneth Skovhede 6255572c25 Added a timestamp value to the end of dates in the report output for easier parsing. 2017-11-08 22:18:25 +01:00
Kenneth Skovhede cec0fca522 Merge branch 'feature/use-windows-exclude-paths' 2017-11-01 08:54:44 +01:00
Kenneth Skovhede 2ff3fa6a8d Added support for reading the list of folder/file exclusion from the Windows registry 2017-10-31 10:57:37 +01:00
Kenneth Skovhede f20ceab9e5 Added flags option to the enum for good measure 2017-10-31 10:56:21 +01:00
Kenneth Skovhede 09ca51bdd9 Fixed reporting the time values in the local timezone 2017-10-31 10:55:35 +01:00