Commit Graph
1847 Commits
Author SHA1 Message Date
gpatel-fr cf17f488d1 update Newtonsoft lib to 13.02 2023-03-24 23:17:11 +01:00
dgasawayandGitHub 0ba4da94a6 Add a few more compressed, audio, and video exclusions
Supporting information:
https://wiki.xiph.org/MIME_Types_and_File_Extensions
https://en.wikipedia.org/wiki/Opus_(audio_format)
https://en.wikipedia.org/wiki/Zstd
https://en.wikipedia.org/wiki/MPEG-2#Filename_extensions
2022-09-06 14:52:51 -07:00
Kenneth SkovhedeandGitHub 1935e3f642 Merge pull request #4601 from warwickmm/fix_patch_with_local_blocks
Fix implementation of Options.PatchWithLocalBlocks
2022-06-14 22:12:54 +02:00
martengooz 7f9daa6041 Add additional compression exclusions 2022-06-12 17:16:35 +02:00
albertony c490009f20 Delay creation of database directory until we know it is needed.
This avoids creating directory %LocalAppData%\Duplicati when it would just be left
empty, and it makes running portable mode (e.g. debug builds) stealthier.
2022-04-01 21:18:19 +02:00
tariandeath d44496f6d4 Add semicolons 2022-02-27 13:29:58 -07:00
JEDandGitHub 662bad4526 Add newline 2022-02-27 00:13:37 -07:00
tariandeath f6ebcd6262 Fix typo 2022-02-26 20:45:00 -07:00
tariandeath 8b24536d4e Add Upgraded Version to binary 2022-02-26 20:39:14 -07:00
tariandeath 396119aa40 Add indexes to improve backup query performance. 2022-02-26 20:24:14 -07:00
Kenneth SkovhedeandGitHub f0dfe67c89 Merge pull request #4660 from warwickmm/download_error_log_filename
Always log filename if error occurs during retrieval
2022-02-23 22:07:16 +01:00
Riccardo Paolo Bestetti 528478fda4 Implement exponential backoff for backend errors 2022-01-20 23:22:08 +01:00
Kenneth Hsu 6a84e9f972 Always log filename if error occurs during retrieval.
This fixes #4658.
2022-01-08 12:06:33 -08:00
Kenneth Hsu 712588f1d6 Fix implementation of PatchWithLocalBlocks.
Previously, this would return true as long as the key was present in the
Dictionary, regardless of what the value parsed to.
2021-09-03 16:23:28 -07:00
Kenneth SkovhedeandGitHub 6dcbccab28 Merge pull request #4520 from warwickmm/remote_list_verification_exception
Create custom Exception for remote list verification failures
2021-08-11 10:32:18 +02:00
warwickmmandGitHub 184dfeae78 Merge pull request #4492 from TopperDEL/storj-dcs-update
Add Storj DCS backend and deprecated Tardigrade DCS backend.

Storj renamed their "Tardigrade Decentralized Cloud Storage" product to "Storj DCS".  This adds a new Storj DCS backend and deprecates the old Tardigrade one.  A warning is issued to inform Tardigrade users to modify their configurations to use the new backend.

This also adds a passphrase verification field to ensure that the user has provided the correct encryption passphrase.
2021-07-20 08:28:54 -07:00
TopperDEL fc55b16992 fix: More info in deprecation-warning 2021-07-16 08:34:01 +02:00
TopperDEL 5d36791aa5 feat: Inform user about deprecated Tardigrade-Backend with a warning 2021-07-15 17:37:22 +02: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
warwickmmandGitHub 7b4f475762 Merge pull request #4502 from samuel-w/master
Make file extension compression hints case-insensitive.
2021-05-09 14:29:59 -07:00
samuel-wandGitHub fa79b406a2 Improve comment 2021-05-09 15:16:31 -05:00
samuel-w d05d83cf4b Add comment 2021-05-08 15:51:10 -05:00
samuel-w bfa24581c1 Add Disk Archive files to compression hints 2021-05-08 01:45:07 -05:00
samuel-w d5c83d2af3 Compare file extensions case insensitively.
Fixes https://github.com/duplicati/duplicati/issues/4493
2021-05-08 01:14:08 -05:00
aureliandevel baf489e8a9 Fix column name typo 2021-03-20 13:26:53 +11:00
Kenneth SkovhedeandGitHub 90a8c34c06 Merge pull request #4398 from warwickmm/bugfix/repair_missing_blocklists
Fix bug in repairing multiple missing blocklist hashes
2021-03-06 14:23:20 +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 534b71e409 Fix bug with repairing multiple missing blocklist hashes.
If there is more than one missing blocklist hash, we must reset the
offset index before copying hashes from the next blocklist into the
buffer.

This fixes #4397.
2020-12-26 21:37:52 -08:00
Kenneth SkovhedeandGitHub e070af3dd1 Merge pull request #4386 from warwickmm/catch_symlink_read_error
Catch and log exceptions encountered when getting symlink target
2020-12-19 15:02:09 +01:00
Kenneth SkovhedeandGitHub ca073a2d0c Merge pull request #4380 from warwickmm/fix_purge_broken_files_dry_run
Fix error encountered during dry-run of purge-broken-files
2020-12-19 14:44:21 +01:00
Kenneth SkovhedeandGitHub 8002d3d225 Merge pull request #4376 from warwickmm/fix_indentation
Fix incorrect or misleading indentations
2020-12-19 14:43:31 +01:00
Kenneth SkovhedeandGitHub ebc30c7f02 Merge pull request #4366 from warwickmm/improve_missing_source_message
Fix misleading error message about missing source path
2020-12-19 14:40:35 +01:00
Kenneth SkovhedeandGitHub 5af8e1c38b Merge pull request #4367 from warwickmm/fix_variable_name
Fix typo in variable name
2020-12-19 14:39:15 +01:00
Kenneth Hsu a39a24beae Catch and log exceptions encountered when getting symlink target.
Since the GetSymlinkTarget method can throw an exception, we should log
the failure case and avoid further processing of the symlink target.

This concerns #2171, which describes issues with symlinks created using
Windows Subsystem for Linux.
2020-12-06 10:08:46 -08:00
Kenneth Hsu 9952babf0b Commit or rollback transaction before beginning new ones.
The PurgeFilesHandler begins new transactions using the same database
connection.  During a dry-run, these transactions are rolled back, and a
subsequent attempt to rollback in the PurgeBrokenFilesHandler then
resulted in an exception.

To avoid this, we perform the rollback in the PurgeBrokenFilesHandler as
soon as we can.

I'm not entirely confident that this is the correct fix, but it appears
to resolve issue #4379.

This fixes #4379.
2020-11-30 19:55:20 -08:00
warwickmmandGitHub 1c3065aa81 Merge pull request #4336 from barfoo4711/master
Add logging statements for issues encountered when restoring empty files.
2020-11-22 10:23:06 -08:00
Kenneth Hsu 47270d1979 Change log level for entry regarding restoring empty files.
Restoring empty files is expected to be quick, so profiling is not
necessary.
2020-11-22 09:05:25 -08:00
Kenneth Hsu 8b010888e2 Make log entries for restore errors consistent.
This concerns #4315.
2020-11-22 09:05:25 -08:00
Kenneth Hsu 31a4eab7e7 Fix casing in log entry. 2020-11-22 09:05:25 -08:00
Kenneth Hsu 5951047ff1 Fix incorrect or misleading indentations.
This also adds braces to clarify scope where beneficial.
2020-11-21 13:58:16 -08:00
Kenneth Hsu 20e599586a Fix typo in variable name. 2020-11-15 12:23:46 -08:00
Kenneth Hsu 14de767738 Fix misleading error message about missing source path.
The source path can be a file, so the error message should not assume
that the path represents a folder.  This also provides the user with
some hints on what steps should be taken to address the issue.

This fixes #3522.
2020-11-15 12:21:05 -08:00
Achim Schaefer 5fa8e58f8d Bugfix issue #3920
only "best-effort" and "realtime" allow a priotity level
"none" and "idle" have no prioity level
2020-11-05 15:49:48 +01:00
Sean Templeton a9c16fcefa Upload filesets last during a backup
If parallel uploads are enabled it is possible for the fileset to be uploaded before all dblocks are uploaded.
When the fileset is placed in the queue to be uploaded place it in a separate list and only upload it after all dblocks have been uploaded.

Fixes #4341
2020-10-29 21:19:15 -05:00
Kai 8b1d2cfafa Merge branch 'master' of https://github.com/barfoo4711/duplicati into master 2020-10-03 14:20:08 +02:00
Kai 8e3a52654b Update RestoreHandler.cs
fixed #4315 by adding catching of exceptions when creating empty files Not sure if it is ok to create WARN messages or if it should be ERROR messages instead
2020-10-03 14:09:50 +02:00
Kenneth SkovhedeandGitHub a3ff9f6a0d Merge pull request #4307 from warwickmm/remove_misleading_comment
Remove misleading comment
2020-09-23 11:11:22 +02:00
Kenneth Hsu dd902ce7b2 Remove misleading comment.
The retention policy logic was changed, and this comment was leftover
from the old implementation.

https://forum.duplicati.com/t/new-retention-policy-deletes-old-backups-in-a-smart-way/2195/34?u=ts678

This fixes #3306.
2020-09-03 19:48:47 -07:00
Dean Ferreyra 5f972c2437 Make FilterEntry of type Simple for @ again
Switch back to using `FilterType.Simple` for `@` filters to fix the
restore picker again.

In LocalDatabase.cs, replace code that was explicitly looking for the
presence of wildcard characters to instead trigger off of
`FilterType.Wildcard`.  This fixes the "find" command.

Change FilterEntry.ToString() to prefix Simple filters with `@` so
that if simple filters with wildcard characters make the round-trip
through a string, their `FilterType.Simple` type is preserved.
2020-09-01 23:04:03 -07: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