Jojo-1000
917e2cd0c4
Remove obsolete custom platform detection.
2024-05-30 02:14:05 +02:00
Kenneth Skovhede
49fb45859c
Fixed some incorrectly quoted literals in SQL statements
2024-04-15 08:24:01 +02:00
Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Kenneth Hsu
bacc50513e
Provide explicit column names when creating temp table.
...
If we do not use an AS clause, the name of the column in the result set
is unspecified and may change depending on the version of SQLite.
https://www.sqlite.org/c3ref/column_name.html
This fixes #4403 .
2020-12-29 19:58:06 -08:00
Kenneth Hsu
20e599586a
Fix typo in variable name.
2020-11-15 12:23:46 -08:00
Honoré Vasconcelos
71494826f9
Improve query performence used in GetFilesAndSourceBlocksFast
...
Tree changes in query
* Move inner selection S to a temporary table
* Reorder join field in outer query
* Remove intersection with File view in outer selection
File view is already intersected with in selection S
With the above-mentioned changes, on a specific testset, query took 9s instead of 6min.
2020-08-26 10:10:54 +01:00
Kenneth Hsu
13e1f0dac6
Remove unused Database members.
2020-03-14 16:45:08 -07:00
Kenneth Hsu
83ac03843d
Fix spelling errors in comments.
...
In doing so, we also normalized some line endings.
2019-12-14 09:52:55 -08:00
Kenneth Skovhede
99d0cb3c57
Merge pull request #3953 from warwickmm/make_fields_readonly
...
Mark fields that don't need to be reassigned as readonly
2019-10-21 08:36:17 +02:00
Kenneth Hsu
2aa76881a5
Mark fields that don't need to be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Hsu
afab61a05b
Use pattern matching to simplify casts.
2019-10-19 10:15:38 -07:00
Kenneth Hsu
40cae529e6
Move NormalizeDateTime method to Utility class.
2019-09-01 12:38:23 -07:00
Rune Henriksen
f5f353fe19
Merge branch 'master' into feature/fix_path_storage2
2019-01-25 23:37:57 +01: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
Kenneth Skovhede
03722fcba1
Merge branch 'master' into feature/fix_path_storage2
...
# Conflicts:
# Duplicati/Library/Main/Database/LocalRecreateDatabase.cs
2018-10-23 11:33:35 +02:00
Kenneth Hsu
beb552fa9e
Remove unnecessary use of partial keyword.
...
These classes are defined in a single location.
2018-10-13 16:53:28 -07:00
Kenneth Hsu
9ce1e807c7
Remove unused variables and fields.
2018-09-29 10:41:27 -07:00
Kenneth Skovhede
cbc18970d5
Re-applied the path-storage fix as the merge failed somehow
2018-06-14 10:12:24 +02:00
Kenneth Hsu
20f2f37806
Remove unnecessary calls to String.Format.
2018-06-02 12:02:55 -07: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
Kenneth Skovhede
ee64517f7d
Removed calls to Console.WriteLine as we may run somewhere without a console.
2018-05-15 11:29:08 +02: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
5fb1958ceb
Remove redundant calls to ToString.
2017-11-26 15:44:34 -08:00
Dan Stahr
af14151d91
Fixed an error in renaming absolute Windows paths.
...
Previously, the output of the first replace was never used and therefore the absolute Windows paths were not restored
correctly.
The two patterns (i.e. ?: and \\) are disjoint so rewriting the previous result in case a match is found
for the second one is OK.
2017-03-10 22:01:24 +00:00
Kenneth Skovhede
97ba7ef9a5
Fixed issue with restoring files to their original location.
...
This fixes #2246
2017-01-14 12:46:59 +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
0c68daff6c
Fixed all whitespace to be 4 spaces instead of tabs
2016-09-15 11:39:27 +02:00
Kenneth Skovhede
742eab0913
Fixed multiple cases where connections and command instances were not disposed.
...
This should fix all cases of "File is locked" on windows.
2016-04-06 20:40:34 +02:00
FootStark
27ce3ef5f3
Respect DryRun option when scanning target blocks
2016-03-12 12:48:41 +01:00
Kenneth Skovhede
59df0bf71b
Merge branch 'ParalellFileScanning' of https://github.com/FootStark/duplicati into FootStark-ParalellFileScanning
...
# Conflicts:
# Duplicati/Library/Main/Operation/RestoreHandler.cs
2016-03-07 00:07:43 +01:00
Kenneth Skovhede
72b32a8fe5
Merge branch 'ImpVolumeDownloadOrder' of https://github.com/FootStark/duplicati into FootStark-ImpVolumeDownloadOrder
2016-03-06 21:17:26 +01:00
FootStark
e22a47ef83
Merge remote-tracking branch 'refs/remotes/duplicati/master' into ParalellFileScanning
2016-03-05 10:08:47 +01:00
FootStark
412d7fe07b
Reorganize ScanForExistingTargetBlocks
...
1. Fixes a bug where duplicati truncates forthwritten files backuped
with a size being a multiple of blocksize on rename.
2. Tries to verify file data on beginning. If successful, marks files to
not be reverified in the end.
3. On overwrite restore, removes readonly attribute from files having to
be modified
4. Little speedup by computing parallel blcok and file Hashes
2016-03-05 02:00:28 +01:00
FootStark
2ff1b85ace
Fix update stats if file without blocks
...
Fixes progress tracker if there are files included in restore without
any blocks (happens on empty files with skip-metadata option)
2016-03-04 19:30:32 +01:00
FootStark
1fcf9919a0
Last Adjustment and a measure
2016-03-03 23:18:47 +01:00
FootStark
ee5d76837f
Volume order by max block index
2016-03-03 20:15:27 +01:00
FootStark
7c1caa6f3d
Added comment
2016-02-28 00:16:00 +01:00
FootStark
36984a322b
Imrpoved Blockmarker and update statistics
...
Updated BlockMarker to alter rows in Blocks table directly
Added Trigger-based update statistics
Prepared for file tracker
2016-02-27 22:04:48 +01:00
FootStark
2595737e58
Speedup restore (Index + SQL Fix)
...
Fix Indexes and SQL's for Commit and Querying Missing Blocks
2016-02-18 19:31:17 +01:00
Kenneth Skovhede
50743b06ed
Implemented indexes as suggested in #1481 and #1391
2015-11-16 12:57:34 +01:00
Kenneth Skovhede
d2f4dac74a
Fixed issues with filtering/selecting files on case-insensitive filesystems.
...
This closes #1461 .
2015-09-15 19:29:58 +02:00
Kenneth Skovhede
e13978d1c0
Improved handling of non-standard blocksize and hashing algorithms
2015-04-08 20:33:30 +02:00
Kenneth Skovhede
3fc151b175
Fixed issue with file length not being set correctly.
...
Fixed issue with metadata not beign applied because file has not yet been created.
This solves #1214 .
This solves #1218 .
2015-03-04 16:50:32 +01:00
Kenneth Skovhede
847c22e388
Fixed a bug that caused metadata to be restored for only every second file
2015-01-25 14:26:54 +01:00
Kenneth Skovhede
4846ffa103
Now using the file modification timestamp and the filesize as indicators that trigger file scanning.
...
This fixes #1099 .
2015-01-24 21:59:53 +01:00
Kenneth Skovhede
299a1e8647
Fixed a case where a missing value caused an error
2014-12-30 17:16:17 +01:00
Kenneth Skovhede
9893e999b0
Added TODO
2014-11-23 22:14:24 +01:00