Commit Graph
110 Commits
Author SHA1 Message Date
Kenneth Hsu afab61a05b Use pattern matching to simplify casts. 2019-10-19 10:15:38 -07:00
Kenneth SkovhedeandGitHub 153a972853 Merge branch 'master' into fix-stop-after-current-file 2019-09-17 10:06:36 +02:00
drwtsn32x 667094c307 undo changes in pr 3847, implement better fix 2019-09-16 21:52:12 -07:00
BlueBlock 9ae3f88dd5 Merge remote-tracking branch 'upstream/master' into fix-stop-after-current-file 2019-08-16 23:46:55 -04:00
drwtsn32x cfeabfb2dd Add auto vacuum interval option 2019-07-29 17:56:43 -07:00
drwtsn32x da708cdbca Rework UpdateMetadata 2019-07-28 07:12:14 -07:00
BlueBlock 29a1a7c618 fix stop after the current file
'stop after upload' is now
stop after the current file' and the operation will cleanly allow the current file to complete.
2019-07-23 10:35:33 -04:00
drwtsn32x 3e4495cfdf Add auto-compact-interval option to allow delay between automatic compactions 2019-07-21 07:25:32 -07:00
Francois Lafleur 8f47123fb5 Open web interface when click on Windows notification
Fix notification appears like error when they are warning only

#2612
2019-04-06 07:51:05 -04:00
Kenneth Hsu b75b439772 Make optional parameter required.
There is only one usage of this method that did not provide value for
the filter parameter.  By making this parameter required, we can avoid
the many issues that arise with optional parameters (default values
being embedded at the call sites, ambiguous overload resolution, etc.).
2019-01-22 17:53:25 -08:00
Kenneth Hsu 0b2036a3fb Simplify enumeration of collection.
This reduces the number of enumerators that need to be created while
also making the code slightly easier to read.
2018-12-31 14:06:27 -08:00
Kenneth Hsu b1d5dcc3dd Only create passphrase option if passphrase is provided.
This fixes an issue introduced in revision f7800e8a2b where restores
from the UI would result in the following exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Empty passphrase not allowed
Parameter name: passphrase

This addresses issue #3542.
2018-12-24 21:28:40 -08:00
Kenneth Hsu 7e6fa8a202 Convert write-only IMessageSink.OperationProgress property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu 1764b9ad4e Convert write-only IMessageSink.BackendProgress property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu 54d8328f69 Fix incorrect reference to database path.
This addresses issue #3072.
2018-12-02 13:36:52 -08:00
Kenneth SkovhedeandGitHub e54789d71c Merge pull request #3504 from LacunaSoftware/show-button-on-warnings
Display "Show" button on notifications from a certain scenario
2018-11-21 12:43:14 +01:00
verhoek b14391a5d0 Make passphrase argument required. 2018-11-21 09:07:35 +01:00
verhoek f7800e8a2b Functionality for backend to retrieve passphrase adhoc on restore, which
is convenient for asymmetric gpg encryption.
2018-11-20 21:12:46 +01:00
verhoek 1f8c7fab87 Misc refactoring. 2018-11-20 12:57:31 +01:00
Mikael Mello d2647f0126 Merge branch 'master' into show-button-on-warnings
# Conflicts:
#	Duplicati/Server/Runner.cs
2018-11-19 09:30:02 -02:00
Mikael Mello 305b42c960 Add action 'backup:show-log' to notifications from a specific scenario 2018-11-19 09:20:22 -02:00
Mikael Mello f03e8f6c29 Create warning when no files are restored 2018-11-08 08:15:41 -02:00
Mikael Mello a8f0dbda44 Fix useless notification "Warning: Got 0 warning(s)" 2018-10-24 19:10:42 -03:00
Kenneth Hsu 05d8fd425e Add comments to explain empty methods. 2018-10-10 21:28:00 -07:00
Rune HenriksenandGitHub be7edb580d Merge pull request #3410 from warwickmm/simplify_enumerating_collections
Simplify enumeration of collections
2018-10-07 19:06:28 +02:00
Kenneth Hsu 0c1ac9c489 Replace chained LINQ calls with call to overload with predicate.
This simplifies the code by reducing the number of enumerators created
while also making the code slightly more readable.
2018-10-06 16:20:18 -07:00
Kenneth Hsu d72128ec83 Remove unused method parameters. 2018-10-06 15:09:43 -07:00
Kenneth Hsu d4692e2d35 Use built-in method to expand environment variables.
After we removed the tilde expansion in revision c9aa6cf5fb ("Avoid
performing tilde expansion"), the Utility.ExpandEnvironmentVariables
method simply called System.Environment.ExpandEnvironmentVariables.  We
can simplify the code by just referencing the built-in method directly.
2018-09-22 19:59:46 -07:00
verhoek 680984d936 We only update metadata in this function for IBasicResults. 2018-06-20 09:29:14 +02:00
verhoek f320ec53a5 Remove unused basic result timing info. If needed for other task types,
we should store them with their own key. Added restore timing info.
2018-06-20 09:24:06 +02:00
verhoek 3fb7175931 Merge remote-tracking branch 'origin/master' into feature/tempdir
# Conflicts:
#	Duplicati/Server/Runner.cs (copied readonly prop)
2018-06-07 16:37:40 +02:00
verhoek ca55179f4b Adjusted according to review comment to keep tempfolder for storing task config around, removed trailing white space. 2018-06-07 16:32:39 +02:00
verhoek 3ab394ed7d Adjust according to review comments - prevent creating tempfolder when not needed.
Moved out one of multiple responsibilities out of function.
2018-06-04 18:03:24 +02:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
verhoek 7556c3fa63 Merge branch 'master' into feature/tempdir 2018-05-23 20:13:48 +02:00
verhoek 7bf1768f80 Implemented default tempdir for backend server. 2018-05-22 21:51:29 +02:00
verhoek 30cd41585b Corrected spelling function name. 2018-05-16 20:08:40 +02: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 03df606a80 Merge branch 'feature/filter_groups' of https://github.com/duplicati/duplicati into feature/filter-groups 2018-03-21 12:23:03 -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 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 e2aa98fbca Add option to disable backup when on battery power.
This addresses issue #2666.
2018-03-16 19:32:50 -07:00
Kenneth Skovhede e124329f1e Merge branch 'feature/improved-logging' 2018-03-16 08:38:14 +01:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01: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 Skovhede 022b2087c0 Renamed DefaultFilters to FilterGroups 2018-03-05 22:27:16 +01:00
Kenneth Skovhede 64789858de Merge branch 'master' of github.com:duplicati/duplicati 2018-02-11 17:54:54 +01:00
Kenneth Skovhede be7cde4e6e Fixed the problem where the UI reports a warning but "got 0 warning(s)" 2018-02-11 17:54:44 +01:00
Tyler Gill 8190eb8d9c When running a backup via the GUI, filters are loaded from the database instead of from the options, which means that the default filters aren't taken into account.
This change updates the ApplyFilter method used by the Server's Runner method to search for the default filters option, and append those filters to the list if they are found.
This should support both global and per-backup settings for default filters, as it checks the options after the two are merged.
2018-02-09 11:29:00 -07: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