Kenneth Skovhede
c0f40e19ca
Updated copyright year to 2026 across the project
2026-04-16 15:21:24 +02:00
Carl Johnsen
31c5441bdb
Forwarded cancellation tokens, added some missing .ConfigureAwait() and added some missing docstrings
2025-06-19 11:04:09 +02:00
Carl Johnsen
baab370046
Added the final docstrings
2025-06-18 08:26:20 +02:00
Carl Johnsen
3d11a05400
Added .ConfigureAwait(false) to all of the await statements
2025-06-12 08:34:29 +02:00
Carl Johnsen
73c8471f8e
Made BlocklistHashEnumerable and the code using it async
2025-06-11 07:37:22 +02:00
Carl Johnsen
4d8d1a80d1
Updated an inner call of FilesetVolumeWriter to use the new async database methods
2025-05-22 06:01:22 +02:00
Carl Johnsen
1f77ce7d84
Removed whitespace
2025-05-22 06:00:34 +02:00
Kenneth Skovhede
d22ce5370e
Rewrote the repair for scenarios where remote files are missing.
...
This adds a number of additional features to the repair process so it can actually fully recover if all data is present.
Also added a several tests to ensure that the functionality works in multiple scenarios.
This fixes #5987
2025-05-08 10:31:38 +02:00
Kenneth Skovhede
be16323f24
General cleanup, common database validation exception
2025-03-10 14:38:45 +01:00
Kenneth Skovhede and GitHub
9464caf622
Feature/update license 2025 ( #5851 )
...
* Fixed some minor whitespace issues
* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Jon Schewe
e5f57e8f66
Remove unused LOGTAG field
2020-07-11 18:12:59 -05:00
Jon Schewe
2747f78c40
Remove unneeded catch statement
...
Using the finally block to close out the writer allows the exception to
show up in the log.
2020-07-11 17:33:38 -05:00
Jon Schewe
36336ac6f1
Rethrow exception after logging
...
This ensures that the backup properly fails.
2020-07-10 06:55:41 -05:00
Jon Schewe
e41c0d8bf9
Catch compression errors and report them
...
When the file list is over 4GB one needs to have the zip64 option
enabled. This commit catches the exception and reports it as an error so
that the user knows what the problem is.
Fixes duplicati/duplicati#/4206
2020-07-08 07:55:25 -05:00
Kenneth Hsu
d7e3ac9b10
Move CreateFilesetFile method to FilesetVolumeWriter class.
...
This only concerns filesets, so it does not belong in the base class.
2020-01-25 18:53:15 -08:00
Tyler Gill
e14be62c2b
Make the temp file the default and only bevavior - fileset volume no longer uses memory stream
2019-11-01 19:27:49 -06:00
Tyler Gill
bc0686794a
Cache to disk
2019-10-30 17:30:47 -06: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
8d7c6c6e21
Ensure that filelist is always written to dlist files.
...
This fixes a regression introduced around revisions e0899a2a91 ("add
method to add the filelist file") and 3b5af1cf01 ("add method to add
filelist file"), where the filelist was not written by all usages of the
FilesetVolumeWriter. Previously, one would have to invoke
AddFilelistFile with each usage. Now, we simply do so when the
FilesetVolumeWriter is closed.
We also modified the UploadSyntheticFilelist so that the usage of the
FilesetVolumeWriter is contained in a using statement, which will ensure
that it is disposed.
This fixes issue #3924 .
2019-09-27 20:35:06 -07:00
BlueBlock
e0899a2a91
add method to add the filelist file
...
this also fixes "control-files" being added to dlist
2019-09-10 13:09:25 -04:00
Kenneth Hsu
a1d8637c3a
Fix typo in comment.
2019-03-11 21:37:42 -07:00
Kenneth Hsu
e57c714ee8
Dispose of manually enumerated enumerator.
...
The IEnumerator<T> interface implements IDisposable, so the enumerator
should be disposed of after its use.
2019-03-11 21:15:00 -07:00
Kenneth Hsu
c27ea24826
Ensure that FilesetVolumeWriter removes temp file upon disposal.
...
This ensures the removal of the temporary file containing the
filelist.json that remained regardless if files needed to be uploaded or
not.
This concerns issue #3652 .
2019-02-16 19:53:06 -08: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 Hsu
604b6e4337
Dispose enumerators after manually iterating over elements.
...
Since the IEnumerator<T> interface implements IDisposable, we should
make sure to dispose of the enumerator when manually iterating over the
elements.
2017-10-07 12:27:11 -07:00
Kenneth Skovhede
d101f91c94
Fixed support for metadata larger than blocksize. Now supports one full blocklist of metadata, appx 300mb with default settings.
...
Added correct handling of metadata hashes, such that a metadata blockset is now handled the same was as a regular file blockset.
The query that creates the filesets does not support more than a single blocklist of metadata, hence the limitiation.
2016-04-04 18:11:48 +02:00
Kenneth Skovhede
e40bd7f02a
Proposed version, not complete with handling large metadata chunks
2016-04-03 23:10:47 +02: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
7116f750c1
Fixed issue with empty blacklists written in index files
2013-07-19 00:42:24 +02:00
Kenneth Skovhede
23744d8915
More refactoring and cleanup
2013-05-08 21:29:59 +02:00
Kenneth Skovhede
8f704d9445
Moved stuff around and dropped the ForestHash namespace
2013-05-08 20:17:07 +02:00