drwtsn32x
41a639ddc5
Show vacuum in status message
2019-04-18 21:04:31 -07:00
Kenneth Hsu
19981ae59d
Simplify implementation of FlushBackend.
...
If the uploader throws an exception, we should not set the status of the
flush request and let the exception bubble up.
2019-03-31 19:38:42 -07:00
Kenneth Hsu
da4dabe838
Fix typo in async property name.
2019-03-28 20:53:55 -07:00
Sean Templeton
cc3e94fece
Fix code review comments and other minor changes
...
- Rename indexVolume to indexVolumeWriter in DataBlockProcessor to reduce
confusion.
- When flushing the remaining uploads, check the tasks for exceptions in
completion order rather than waiting for them all at once. If there is an
exception all other uploads are cancelled anyway.
- Remove setting the operation progress as Backup_WaitForUpload in the
BackendUploader since the BackupHandler sets it.
- Use an exception filter in BackendUploader.
- Use Options property MaxUploadPrSecond instead of getting the raw value.
2019-03-13 21:51:06 -05:00
Sean Templeton
3de04da39e
Run each upload on a separate thread
...
Added a small Worker class, private to the BackendUploader, to track the
upload tasks and the backend for each task.
2019-03-03 21:43:00 -06:00
Sean Templeton
1029d99e10
Simplify BackendUploader and remove unnecessary code
2019-03-03 21:42:58 -06:00
Sean Templeton
4f4529a88a
Move upload related code from BackendHandler to BackendUploader
...
As the BackendUploader is in charge of uploads the code has been moved
there to centralize the responsibility and prepare for parallel uploads.
2019-03-03 21:35:09 -06:00
Kenneth Hsu
8a31eac5c0
Avoid potential null reference exception.
2019-02-18 12:50:46 -08:00
Kenneth Hsu
b5d9451b33
Remove redundant casts.
2019-01-21 19:30:52 -08:00
Kenneth Skovhede and GitHub
b961fbd744
Merge pull request #3584 from Pectojin/remove_build_lookup_table_method
...
Remove unsed method and call
2019-01-13 10:31:24 +01:00
Hendrik and GitHub
c34c66bd34
Merge pull request #3582 from warwickmm/backup_test_percentage
...
Add option to specify percentage of samples for verification
2019-01-05 18:52:27 +01:00
Rune Henriksen
f696842877
remove unsed method and call
2019-01-05 00:30:43 +01:00
Kenneth Hsu
edfa7096f6
Add option to specify percentage of samples for verification.
...
This addresses issue #3296 .
2019-01-02 15:51:19 -08:00
Kenneth Hsu
a179a535c8
Rename local variables to better indicate that they are unused.
2018-12-31 14:59:47 -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
1275f14405
Replaced DirectorySeparatorChar.ToString() calls.
2018-11-02 17:45:00 +01:00
verhoek
bc053df294
Moved basic IO helper functions to Library.IO.
2018-10-27 12:17:07 +02:00
Rune Henriksen and GitHub
be7edb580d
Merge pull request #3410 from warwickmm/simplify_enumerating_collections
...
Simplify enumeration of collections
2018-10-07 19:06:28 +02:00
Kenneth Hsu
b824c86c7e
Avoid unnecessary enumeration of collections.
...
This improves performance by using Any() to avoid unnecessary
enumeration of collections.
2018-10-06 16:20:18 -07:00
Kenneth Hsu
d72128ec83
Remove unused method parameters.
2018-10-06 15:09:43 -07:00
Kenneth Skovhede
ca1872ce57
Added an option to disable filelist consistency checks as it was reported to slow backups with a large number of filesets.
...
This addresses #3194
2018-08-14 15:21:54 +02:00
Kenneth Hsu
54c4f9224d
Allow tasks to complete on any thread when context is irrelevant.
...
When the code following the await can be executed on any thread, it's
recommended to use ConfigureAwait(false) to avoid unnecessary context
switching and potential deadlocks.
2018-06-21 19:28:27 -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
Daniel Gehriger
8236cae390
USN change journal based backup now correctly reporting source size
2018-05-02 11:24:24 +02:00
Daniel Gehriger
ad8a3f4d4e
Simplified USN journal interface; corrected folder enumeration broken due to latest merge with master
2018-04-26 23:03:50 +02:00
Daniel Gehriger
7a4467f06c
Using DB to calculate fileset size and number of files
2018-04-25 17:32:50 +02:00
Daniel Gehriger
0b43c467c7
Merge remote-tracking branch 'upstream/master' into feature/usn
2018-04-25 17:19:13 +02:00
Kenneth Skovhede
83950e78c6
Merge branch 'feature/ignore_filenames_option' into feature/exclude_empty_folders
...
# Conflicts:
# Duplicati/Library/Main/Operation/Backup/CountFilesHandler.cs
# Duplicati/Library/Main/Operation/Backup/FileEnumerationProcess.cs
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/Operation/TestFilterHandler.cs
# Duplicati/Library/Main/Options.cs
# Duplicati/Library/Main/Strings.cs
2018-04-24 14:46:46 +02:00
Kenneth Skovhede
c6be934747
Implemented empty folder exclusion flag
2018-04-24 13:11:03 +02:00
Kenneth Skovhede
e51e1b9e5a
Implemented option to use exclude filenames to mark folders for exclusion by placing a specially named file inside
2018-04-24 11:25:37 +02:00
Daniel Gehriger
1af7f9e0ca
Merge remote-tracking branch 'upstream/master' into feature/usn
2018-04-23 22:28:27 +02:00
Daniel Gehriger
8ff7681b89
Enabling USN in conjunction with snapshots
2018-04-23 11:45:18 +02:00
Daniel Gehriger
a7d60d88d7
Fixed post-processing of modified file list obtain from USN
2018-04-22 23:03:15 +02:00
Daniel Gehriger
b97d4e0dbb
Correctly filtering list of changed files / folders using exclusion filter
2018-04-20 17:30:08 +02:00
Daniel Gehriger
96d1390412
Disabling USN for now when snapshots are used - this will be enabled shortly
2018-04-20 09:44:48 +02:00
Daniel Gehriger
8af63b1d5d
Fixed some of the issues reported by codacy. The others are incorrect warnings.
2018-04-20 09:17:06 +02:00
Daniel Gehriger
2c1a0ddb4e
Implemented backup based on changes recorded in NTFS USN journal
2018-04-19 22:59:28 +02:00
Kenneth Skovhede
64c8f72143
Added some code to ensure that files that are included by default are also reported in the log (and the test-filter command)
2018-04-12 20:56:15 +02:00
Kenneth Skovhede
79f7b22e0f
Merge branch 'master' into concurrent_processing
...
Changed a few things on the way, removing the log process
# 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/FilelistProcessor.cs
# Duplicati/Library/Main/Operation/PurgeBrokenFilesHandler.cs
# Duplicati/Library/Main/Operation/TestFilterHandler.cs
# Duplicati/Library/Main/Options.cs
# Duplicati/Library/Main/ResultClasses.cs
# Duplicati/UnitTest/BasicSetupHelper.cs
2018-04-11 23:02:47 +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 Skovhede
9093603be1
Added support for disabling the file scanner during backups.
...
This fixes #2963
2018-02-11 20:57:38 +01:00
Tyler Gill
08e0708a95
Change Duplicati's handling of reparse points, so that not all reparse points are treated as symlinks.
...
This is inspired largely by the new (/ returning) feature of OneDrive in Windows 10 Fall Creator's Update, which downloads files on-demand.
A side effect of that change is that the OneDrive folder (and subfolders of it) are marked as reparse points, even though they are not technically standard symlinks.
With this change, a new extension method IsSymlink is added for ISnapshotService and ISystemIO, which checks both the file attributes (for reparse point) and the symlink target path (if null, the path is not treated as a symlink).
All places that previously checked only the file attributes have been updated to use either this method (or at least the same logic, in the case of the core BackupHandler file check).
One side effect of this change is that '--symlink-policy=store' no longer ignores empty symlinks - they are now treated as regular files.
If there are empty symlinks, they will now be backed up as if they were regular files, but I don't know what the conditions are that create symlinks like that, so this might not effect anything in practice.
2018-02-06 13:24:49 -07:00
Tyler Gill
cc053ff4b0
Normalize whitespace
2018-02-06 12:28:54 -07:00
Kenneth Skovhede
75bf6857c1
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# .travis.yml
# Duplicati/Library/Main/Database/LocalBackupDatabase.cs
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/ResultClasses.cs
# Duplicati/Library/Main/Volumes/VolumeWriterBase.cs
# Duplicati/Library/Utility/TempFile.cs
2018-01-20 15:02:41 +01: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 Hsu
8fdbbaa255
Avoid premature declaration of backup completion.
...
This addresses issue #2803 .
2017-10-14 12:00:52 -07:00
Daniel Radünz
0a4a6edca1
Renamed all occurrences of "staggered version" to "retention policy"
2017-09-30 22:05:30 +02:00