Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Kenneth Hsu
e90eb3b2a3
Create custom Exception for remote list verification failures.
...
Previously, we would catch any Exception thrown by VerifyRemoteList and
perform an auto-cleanup (if specified in the options). However, we
should only perform the auto-cleanup if VerifyRemoteList detected an
issue with the uploaded files. Otherwise, an unrelated exception can
cause the database repair to be performed unnecessarily. In the case of
a connection issue, this can leave the database in a corrupted state.
This fixes #4516 .
2021-05-20 13:42:41 -07:00
Kenneth Hsu
de1b89167b
Rename local variable.
2020-04-05 12:00:51 -07:00
Kenneth Hsu
b53770b589
Add VerifyRemoteList overload to reduce duplicated code.
2020-04-05 11:46:08 -07:00
Sean Templeton
d5e064ae45
Fix a few more issues with stop now
...
When a backup is interrupted it will now show as a partial backup in the list of backups on the restore files page.
Temporary filelist volumes are protected from deletion in several places. All but the RestoreHandler
only protect the most recent filelist. The RestoreHandler protects all temporary filelist volumes as the user
might be restoring from one that would be deleted.
Prevent the CoCoL BackendRequests channel is retired exception from appearing when the backup is stopped by checking
if the channel is retired before trying to add the FlushRequest to the channel. Any exceptions from the BackendUploader
task will still be thrown.
2020-03-01 21:19:07 -06: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 Hsu
afab61a05b
Use pattern matching to simplify casts.
2019-10-19 10:15:38 -07:00
BlueBlock
5614c3ef81
change where gui backup version count gets the count
...
get the count from the db so we can filter on isFullBackup
2019-08-18 14:42:39 -04:00
Kenneth Hsu
d72128ec83
Remove unused method parameters.
2018-10-06 15:09:43 -07: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
Tyler Gill
0a1e98712a
Adds warnings and errors if the reported available quota either reaches a configurable percentage of the backup size, or when it is completely exhausted.
...
This is configurable via the --quota-warning-threshold command line parameter.
2018-02-07 11:23:52 -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
6abe087c18
Use helper method to get unique items and duplicates.
2017-09-28 21:55:15 -07:00
Kenneth Skovhede
7ed1362e4c
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Operation/BackupHandler.cs
2017-09-27 09:58:29 +02:00
Kenneth Skovhede and GitHub
436dd7f017
Merge pull request #2761 from warwickmm/refactor/simplify_duplicate_file_check
...
Use simpler data structures when detecting duplicate filenames
2017-09-26 15:42:46 +02:00
Kenneth Skovhede
9c0c5fbb97
Merge branch 'master' into concurrent_processing
2017-09-26 14:26:09 +02:00
Tyler Gill
b4f56750f8
Add IQuotaInfo interface
...
It also makes quota enabled backends return an instance of this interface instead of the quota components separately.
This way, getting quota stats requires only a single remote request on backends like Google Drive and OneDrive.
2017-09-24 17:30:52 -06:00
Kenneth Hsu
d2adde730a
Use simpler data structures to detect duplicate filenames.
...
A Dictionary is unnecessary since we don't have any key-value pairs. We
just need to keep track of a unique collection of filenames.
2017-09-24 08:40:14 -07:00
Kenneth Skovhede
0a54fd87d3
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/packages.config
# Duplicati/Library/UsageReporter/Duplicati.Library.UsageReporter.csproj
# Duplicati/Library/UsageReporter/packages.config
2017-09-23 22:04:35 +02:00
Kenneth Hsu
b07170d2c9
Reference property instead of invoking extension method.
...
The Enumerable.Count method will attempt to cast the object to an
ICollection, and if successful, reference the Count property. Since we
know that we have a List, we can reference the Count property directly.
2017-09-22 21:28:43 -07: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
a029890409
Implemented better default error messsages
2017-01-09 11:35:38 +01:00
Kenneth Skovhede
9a227ada6b
Reworked the cleanup process to allow a dangling filelist, such that this dangling entry can be used as the basis for a synthetic filelist.
...
Also added an option to disable synthetic filelists.
This fixes #2038 .
This fixes #2101
2016-12-24 11:42:26 +01:00
Kenneth Skovhede
60e77cef88
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/Strings.cs
2016-09-23 14:39:05 +02:00
Kenneth Skovhede
a0368d5f30
Added support for reporting backend size when --no-backend-verification is supplied.
...
This fixes #1723
2016-09-23 13:46:42 +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
2653224da2
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Operation/BackupHandler.cs
2016-08-31 14:17:35 +02:00
Max
b6c83f4982
prevent from including temporary files in verification file
2016-08-28 18:55:14 +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
2187b6adc9
Added limit to avoid reporting negative numbers for remote size if the backend does not report the size
2016-04-06 22:10:36 +02:00
Kenneth Skovhede
317fd493d8
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Database/LocalDatabase.cs
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs
2016-03-30 08:30:09 +02:00
Kenneth Skovhede
a568b1e55e
Fixed query and logic for issue reported in #1644 and #1583
2016-03-30 01:30:51 +02:00
Kenneth Skovhede
a2141a60aa
Pending save buffer fix
2016-03-24 16:36:42 +01:00
Kenneth Skovhede
c71058820c
Cleanup logic for fixing databases with a registered duplicate remote volume
2016-03-24 16:31:07 +01:00
Kenneth Skovhede
6cd73c1d0a
Likely fix for issue #1644 and #1583
2016-03-24 16:30:19 +01:00
FootStark
7656e891ce
Prepocessor for schema, Optimized RemoveRemoteVolume
...
Added a preprocessor for schema supporting sqlite_version-dependent
Statements
RemoveRemoteVolume deletes volumes in batch.
2016-03-16 00:49:28 +01:00
Kenneth Skovhede
430acb6a07
Merge branch 'master' into concurrent_processing
2016-03-13 14:23:28 +01:00
Kenneth Skovhede
3a5c3f44d8
Fixed an issue where some data was not correctly reported after an error was detected
2016-03-10 21:53:00 +01:00
Kenneth Skovhede
3ff2f1eb98
The concurrent processing now seems to work, at least in the base case.
...
Rewrote the handling of index volumes to create them on-demand instead of in-advance.
This makes it much simpler to handle upload failures.
2016-02-22 21:27:12 +01:00
Kenneth Skovhede
0b7e35297a
Added check to see if backends report the same file twice
2016-01-06 21:52:30 +01:00
Kenneth Skovhede
0de9adc606
Added grace-period for incomplete uploads to avoid backups stopping due to the Apache WebDAV issues.
...
This fixes #1243 .
2015-04-05 14:33:13 +02:00
Kenneth Skovhede
331fcc3a27
Delaying remote file deleting to work around a timing issue with Apache WebDAV.
...
This fixes #1243 .
2015-01-24 23:27:42 +01:00
Kenneth Skovhede
8d13e698eb
Updated copyright notices
2015-01-20 21:44:52 +01:00
Kenneth Skovhede
190561a39b
Changed the way remote files are counted to ignore files with other prefixes.
...
This fixes #1233 .
2015-01-07 09:38:42 +01:00
Kenneth Skovhede
aad9827f40
If an "uploading" file is not found, we just unregister instead for attempting to delete it.
2014-12-30 18:26:54 +01:00
Kenneth Skovhede
168e2a9a4e
Added method for handling interrupted backups without remote backend verification.
2014-12-30 17:29:29 +01:00
Kenneth Skovhede
3bcf7cf695
Added fixes to prevent the bare-metal recovery issue discussed in issue #1218 and #1214 .
2014-12-30 16:15:21 +01:00
Kenneth Skovhede
d15087fd28
Added repairing of files with missing hashes to the repair method
2014-08-26 12:51:09 +02:00