Kenneth Hsu
c9aa6cf5fb
Avoid performing tilde expansion.
...
The expansion being performed was often incorrect, as it's possible for
the tilde character to appear as part of the path where it should not be
expanded to the user's home directory.
Properly supporting tilde expansion is complicated and requires
additional study. Instead of supporting it only partially, we have
decided to simplify things and just drop tilde expansion for now. See
the discussion in issue #2619 , as well as issues #2325 and #2555 .
2017-10-21 10:08:33 -07:00
Kenneth Hsu
9c1e55f241
Expose field that represents users's home directory.
...
We will be removing support for tilde expansion, and this field can be
used instead of ~ internally in the code.
2017-10-21 09:40:18 -07:00
Kenneth Hsu
4b5ecedc31
Allow custom equality comparer when obtaining unique items.
2017-09-28 21:30:29 -07:00
Kenneth Hsu
f2699e01dc
Add method to get unique items from a collection.
...
For cases where we want both the unique items as well as the duplicates,
this should be more performant than using LINQ.
2017-09-28 21:30:29 -07:00
Kenneth Skovhede
683b04741d
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Operation/BackupHandler.cs
Manually fixed the HashAlgorithmHelper case
2017-09-20 13:56:37 +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
Kenneth Skovhede
0dd56f1650
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Options.cs
2017-09-19 12:51:40 +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
Kenneth Skovhede
c9af99016a
Merge branch 'master' into concurrent_processing
2017-09-18 15:28:43 +02:00
Kenneth Skovhede
d57c789f4f
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Duplicati.Library.Main.csproj
# Duplicati/Library/Main/Options.cs
2017-09-18 11:56:35 +02: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
4bfaac4ec4
Normalize whitespace
2017-09-13 23:23:15 -07:00
Tyler Gill
768cd93923
Normalize some whitespace
2017-09-13 22:30:12 -07:00
Kenneth Skovhede
19a040970f
Implemented call-context aware settings for HTTP options, temp folder settings, buffers sizes and oauth settings.
...
This makes it more smooth to run multiple operations in parellel, but it should be possible to launch an operation in a separate app-domain
2017-09-04 11:05:16 +02:00
Kenneth Skovhede
66cf98a8b3
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Duplicati.Library.Main.csproj
2017-06-20 15:17:02 +02:00
Kenneth Skovhede
f6adccddb0
Added environment variable to allow setting the filesystem case sensitivity
2017-06-14 22:50:15 +02:00
Kenneth Skovhede
d18431b385
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Controller.cs
# Duplicati/Library/Main/Database/ExtensionMethods.cs
# Duplicati/Library/Main/Database/LocalBackupDatabase.cs
# Duplicati/Library/Main/Duplicati.Library.Main.csproj
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs
# Duplicati/Library/Main/ResultClasses.cs
First attempt at merging all changes from 2016-10-08 to now :/
2017-05-30 00:35:31 +02:00
Kenneth Skovhede
cafb8e6ff1
Fixed issues with reporting the correct error message when enumerating files
2017-01-23 20:53:18 +01:00
Kenneth Skovhede
9a849a2b58
Improved support for cross-os restores.
...
This fixes #1302
This fixes #1983
2017-01-06 23:01:54 +01:00
Kenneth Skovhede
ace2f92856
Rewrote some of the pretty printing routine to make a better log output.
...
Cleaned up the output by removing some of the non-relevant items.
2016-12-02 11:54:20 +01:00
Kenneth Skovhede
126f12bf0a
Merge branch 'master' into concurrent_processing
2016-09-29 13:48:30 +02:00
Kenneth Skovhede
699f06c891
Improved the Serializer for printing objects
2016-09-28 20:15:40 +02:00
Kenneth Skovhede
94c5e10480
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Database/LocalBackupDatabase.cs
# Duplicati/Library/Main/Database/LocalDatabase.cs
# Duplicati/Library/Main/Database/RemoteVolumeEntry.cs
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs
# Duplicati/Library/Main/Operation/RepairHandler.cs
# Duplicati/Library/Main/Operation/RestoreControlFilesHandler.cs
2016-09-16 10:33:07 +02:00
Kenneth Skovhede
0c68daff6c
Fixed all whitespace to be 4 spaces instead of tabs
2016-09-15 11:39:27 +02:00
Kenneth Skovhede
f0c0fc3a2e
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Database/LocalDatabase.cs
# Duplicati/Library/Main/Duplicati.Library.Main.csproj
# Duplicati/Library/Main/Operation/BackupHandler.cs
# thirdparty/CoCoL/CoCoL.dll
2016-08-08 15:03:42 +02:00
Kenneth Skovhede
cab7d0b839
Expanding filter strings using sourcefolder placeholders as well as environment variables.
...
This fixes #1645
2016-06-22 00:42:48 +02:00
Kenneth Skovhede
b590158403
Correct "home" folder on Windows
2016-06-22 00:40:38 +02:00
Kenneth Skovhede
7bbd9f3141
Changed the way the autoupdater probes for potential paths, such that it does not attempt to use ProgramFiles, even if it is write-able.
...
Added some better choices for storing update data on OSX.
2016-04-21 10:57:46 +02:00
Kenneth Skovhede
01c3b3f5c0
More work on a concurrent implementation of the backup process
2016-02-09 09:17:31 +01:00
Kenneth Skovhede
6ceec26c12
Some cleanup with the platform testing code
2015-12-17 11:08:14 +01:00
Kenneth Skovhede
0b442ecdc6
Implemented escaping expanded environment variables when they are used inside regular expressions.
...
This fixes #1500 .
2015-11-28 21:55:22 +01:00
Kenneth Skovhede
9ae7ea233a
Possible fix for PR #1456 and issue #1449
2015-09-08 16:41:16 +02:00
Kenneth Skovhede
60bd9693d0
Imporved handling of the ~ character in paths
2015-09-05 09:14:21 +02:00
Kenneth Skovhede
3149064cde
Merge branch 'no_more_resx'
2015-01-20 21:45:54 +01:00
Kenneth Skovhede
8d13e698eb
Updated copyright notices
2015-01-20 21:44:52 +01:00
Kenneth Skovhede
16c791f0b5
Removed all resx files, now using Duplicati.Library.Localization exclusively
2015-01-20 21:07:24 +01:00
Kenneth Skovhede
86abc7565a
Added locally allocated buffers for copystream to reduce pressure on allocator
2014-11-10 18:38:18 +01:00
Kenneth Skovhede
b8199ad1c4
Fixed handling of multi-byte characters in both HttpServer and Duplicati.
...
This fixes issue #1085 and issue #1063 .
2014-08-13 23:42:26 +02:00
Kenneth Skovhede
260c18c503
Fixed permission issue where opening a file for reading requested write permissions.
2014-04-07 11:35:20 +02:00
Kenneth Skovhede
5f9881a3df
Added option to supply the browser command and improved browser detection on Linux with xdg-open
2014-03-27 15:24:38 +01:00
Kenneth Skovhede
add5534c50
Don't depend on System.Web because it is broken on Mono
...
Update issue #940
Status: Fixed
I took another approach and now manually parse and encode these strings.
This is done to avoid using System.Uri.EscapeUriString because it has some subtle issues:
http://blogs.msdn.com/b/yangxind/archive/2006/11/09/don-t-use-net-system-uri-unescapedatastring-in-url-decoding.aspx
2014-02-10 14:35:02 +01:00
Kenneth Skovhede
47bc010b3c
Added test-filters command
2013-12-07 15:22:51 +01:00
Kenneth Skovhede
740d8c4fbf
Added uname -a command to utility for better diagnosis
2013-09-25 23:31:18 +02:00
Kenneth Skovhede
4e1c188342
Fixed parsing Mono version number
2013-09-25 23:31:00 +02:00
Kenneth Skovhede
efc17dbd1b
Rewrote the strategy for enumerating folders/files to use depth first instead of breadth first, as this seems to consume less memory.
...
Also updated so the callback is invoked before the item is put into the list, as this also reduces the number of items in the list.
2013-08-30 22:10:43 +02:00
Kenneth Skovhede
f3c8cb6cca
Possible fix for a crash
2013-08-25 19:26:12 +02:00
Kenneth Skovhede
6f639b02fd
Changed how the hashes are re-used, so it is hopefully more compatible with Windows crypto API.
2013-08-21 22:24:36 +02:00
Kenneth Skovhede
1e70f32ed3
Added guard against changing passphrase on existing backup
2013-08-17 22:05:40 +02:00
Kenneth Skovhede
84284dc46e
Re-format stuff
2013-08-17 22:03:19 +02:00
Kenneth Skovhede
2dae70ba87
Fixed EPOCH to be UTC
2013-07-17 13:31:17 +02:00