verhoek
38ddcf765f
Refactored parameterfile option.
2019-02-25 11:35:43 +01:00
verhoek
c352b9f117
Make alternative help commands more compact.
2019-02-25 11:35:43 +01:00
verhoek
baad3e2c95
Simplify show help.
2019-02-25 11:35:43 +01:00
verhoek
9e498a2548
Use more readable local function.
2019-02-25 11:35:43 +01:00
verhoek
5969cb07d2
Extract purge temp files timer logic to method.
2019-02-14 21:50:28 +01:00
verhoek
13fec7b253
Extract method.
2019-02-13 22:10:00 +01:00
verhoek
5a7fd7183d
Call GenerateWebserverPasswordTrayIcon from one place only.
2019-02-13 22:06:21 +01:00
verhoek
f89e60033b
Extracted method.
2019-02-12 21:59:43 +01:00
verhoek
c5f1198752
Renamed instance.
2019-02-10 19:58:56 +01:00
verhoek
571e8ef989
Conver static consts to lowercase. Extract logging config to private function.
2019-02-09 16:39:40 +01:00
verhoek
bcf7df2de3
Refactored parameterfile option.
2019-02-09 16:09:32 +01:00
verhoek
1967eabd6f
Make alternative help commands more compact.
2019-02-09 16:09:32 +01:00
verhoek
e57475d972
Simplify show help.
2019-02-09 16:09:32 +01:00
verhoek
eb36915045
Use more readable local function.
2019-02-09 16:09:32 +01:00
Rune Henriksen and GitHub
a951987dcd
Merge pull request #3577 from warwickmm/remove_unused_local_variables
...
Remove unused local variables
2019-01-05 00:13:55 +01:00
Kenneth Hsu
a6153c3cd8
Do not explicitly rethrow exception.
...
When rethrowing an exception, we should do it by simply calling throw;
and not throw exc;, because the stack trace is reset with the second
syntax, making debugging a lot harder.
2018-12-31 15:25:57 -08:00
Kenneth Hsu
577154df00
Remove unused local variables.
2018-12-31 15:02:59 -08:00
Kenneth Hsu
8dd3aeaf26
Use invariant culture in calls to ToLower and ToUpper.
2018-12-11 21:21:07 -08:00
verhoek
ab12be6bbd
Renamed IsClientLinux to IsClientPosix .
2018-11-03 09:26:04 +01:00
verhoek
8bb406cd15
Migrated to use the platform class.
2018-11-02 22:17:16 +01:00
verhoek
b2cc18426c
Renamed Library.IO to Library.Common.IO.
...
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek
bc053df294
Moved basic IO helper functions to Library.IO.
2018-10-27 12:17:07 +02:00
Mikael Mello
c72d5ce236
Revert hunk from 9ce1e80. Log redirect needs to be setup
2018-10-11 11:09:06 -03:00
Kenneth Hsu
d72128ec83
Remove unused method parameters.
2018-10-06 15:09:43 -07:00
Kenneth Hsu
9ce1e807c7
Remove unused variables and fields.
2018-09-29 10:41:27 -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
Kenneth Skovhede
9ba03a3358
Added option to limit the number of allowed hostnames for the webserver
2018-08-07 00:36:12 +02:00
verhoek
05b2483b4c
Added chmoding of sqlite files after opening by sqlite. Removal of some duplication.
2018-06-21 18:58:55 +02:00
verhoek
772eb1f187
Moved method to sqlite loader.
2018-06-21 18:08:52 +02:00
verhoek
d6171a76fd
Readded parameter file option aliases similar as in commandline.
2018-05-23 21:36:46 +02:00
verhoek
67c8929759
wip
2018-05-23 19:37:49 +02:00
verhoek
7bf1768f80
Implemented default tempdir for backend server.
2018-05-22 21:51:29 +02: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 and GitHub
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 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
Rune Henriksen
f414b2fdf2
added 'UserName' and 'StartedBy' variables to the system info page to help troubleshooting
2018-03-09 21:24:57 +01:00
Kenneth Skovhede
243830225e
Rewrote the parameter file check for the server as it caused crashes in some cases
2018-02-01 09:48:00 +01:00
Pectojin
c5236612bf
Added --parameters-file as an argument option for the Duplicati server. Implementation based on the commandline implementation.
2018-01-28 20:03:06 +01:00
Kenneth Hsu
5fb1958ceb
Remove redundant calls to ToString.
2017-11-26 15:44:34 -08:00
Kenneth Skovhede
6ad0fa649e
Re-wrote the auto-updater to use process spawning instead of AppDomain loading to execute updates.
2017-10-11 12:49:14 +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
Rune Henriksen
2c394a5e64
Fix for duplicati/duplicati#2617
...
I moved the "delete log file on service start" functionality into DEBUG mode so that release versions of duplicati won't wipe out it's logs on service restart.
I wanted to retain the functionality for testing (no point having gigantic debug logs when debugging).
2017-09-17 04:07:37 +02:00
Kenneth Skovhede
57b3effeeb
Fixed the server to use %LOCALAPPDATA% on Windows, unless it is already using %APPDATA%, in which case we just continue to use that.
2017-06-27 21:35:23 +02:00
Kenneth Skovhede
5cea95bb54
Merge branch 'tray_readpassword' of https://github.com/mnaiman/duplicati into tray_readpassword
...
# Conflicts:
# Duplicati/Server/Database/ServerSettings.cs
2017-06-21 08:43:04 +02:00
Kenneth Skovhede
ad0f58da17
Fixed startup crash
2017-06-20 14:17:52 +02:00
Kenneth Skovhede
da0de9983b
Implemented the live throttle control.
...
This fixes #1730
This fixes #1261
2017-06-20 13:00:52 +02:00
Max
0c97194cf7
Move GetDatabaseConnection to Server
2017-05-21 19:25:39 +02:00
Max
c387de0e1b
GetDatabaseConnection unification
2017-05-21 16:56:48 +02:00
Max
91f4f79559
added posibility to read server password from database
2017-05-02 21:14:28 +02:00
Kenneth Skovhede
7f4c9383c3
Merge branch 'feature/set_tempdir_for_sqlite'
2017-01-25 21:16:45 +01:00