Commit Graph
4937 Commits
Author SHA1 Message Date
Kenneth Skovhede 5f0ade5b0c Merge branch 'master' into concurrent_processing 2017-06-09 13:14:48 +02:00
Dan Stahr 377aef5fe1 Corrected path to the new files. 2017-06-08 23:21:25 +01:00
Dan Stahr 8c3d83f9af ...and add the files to the project as well 2017-06-08 16:24:06 +01:00
Dan Stahr d0f8fffc25 Added support for executing non-SQL code when performing a database update.
Some of the database migrations I'm planning to perform are very slow if using SQL only
or entirely impossible using the standard SQLite toolchain. I added a simple interface
with "before SQL" and "after SQL" hooks so that a database upgrade can perform custom
code operations as well.
2017-06-08 15:50:03 +01:00
jondoe 8be7b1370e Merge branch 'master' of https://github.com/IGTHORN/duplicati 2017-06-07 22:00:46 +02:00
jondoe 4371bf18c1 Fix for "Include/Exclude filters not available to run-script" #2440. Passing the "filter" option to the Configure method so that the before-script can alter its value. Removing "filter" option afterwards because it is not a support command line option, merely a placeholder for the before-script to modify the filters. 2017-06-07 21:56:01 +02:00
Oliver Kötter 49b43a00d0 Stop iterating though the path if remaining path is \\
Fixes crash when restoring files backuped from unc paths 

Fixes #2469
2017-06-07 08:24:09 +02:00
Kenneth Skovhede 104a6614bf Attempt to update the Azure backend 2017-06-02 14:41:17 +02:00
Kenneth Skovhede 2b2e495e15 Added the <Prefer32Bit>False</Prefer32Bit> option to all executables.
This fixes #2519
2017-06-02 09:42:29 +02:00
Kenneth Skovhede ced3caa219 Changed back to SharpCompress as it is now updated with support for zip64 2017-06-01 10:49:34 +02:00
Kenneth Skovhede 76139f207e Merge branch 'master' into concurrent_processing 2017-05-30 14:00:24 +02:00
Kenneth Skovhede 4d77fd7ebc Flipped the check for existing metadata 2017-05-30 10:29:18 +02:00
Kenneth SkovhedeandGitHub a046bf60a0 Merge pull request #2500 from vnau/master
Test write permissions on 'FTP Test connection'
2017-05-30 00:56:02 +02:00
Kenneth SkovhedeandGitHub a8fe193f1e Merge pull request #2507 from downpoured/master
Proposed fix, --deleted-files causes Fatal error / System.FormatException
2017-05-30 00:53:18 +02: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
Ben Fisher 76f3769f70 Proposed fix, --deleted-files causes Fatal error / System.FormatException
A simple backup that specifies --deleted-files causes a Fatal error.
Shortened repro steps:
(See Github comment for full repro steps)
>duplicati.commandline.exe backup file://C:\data\local\testchangedfiles\destination "C:\data\local\testchangedfiles\source\\" --encryption-module="none" --no-encryption="true" --dbpath="testchangedfiles.sqlite"  --compression-module="zip" --keep-versions=-1  --no-auto-compact="true"
>del source\file6.txt
>duplicati.commandline.exe backup file://C:\data\local\testchangedfiles\destination "C:\data\local\testchangedfiles\source\\" --changed-files="C:\data\local\testchangedfiles\source\file1.txt;C:\data\local\testchangedfiles\source\file2.txt" --deleted-files="C:\data\local\testchangedfiles\source\file6.txt" --encryption-module="none" --no-encryption="true"  --dbpath="testchangedfiles.sqlite"  --compression-module="zip" --keep-versions=-1  --no-auto-compact="true"

Results in:
Fatal error => Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber
   at System.Number.ParseInt64
   at System.String.System.IConvertible.ToInt64
   at System.Convert.ToInt64
   at System.Data.SQLite.SQLiteStatement.BindParameter
   at System.Data.SQLite.SQLiteStatement.BindParameters
   at System.Data.SQLite.SQLiteCommand.BuildNextCommand
   at System.Data.SQLite.SQLiteCommand.GetStatement
   at System.Data.SQLite.SQLiteDataReader.NextResult
   at System.Data.SQLite.SQLiteDataReader..ctor
   at System.Data.SQLite.SQLiteCommand.ExecuteReader
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery
   at Duplicati.Library.Main.Database.LocalBackupDatabase.AppendFilesFromPreviousSet
   at Duplicati.Library.Main.Database.LocalBackupDatabase.AppendFilesFromPreviousSet
   at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation
   at Duplicati.Library.Main.Operation.BackupHandler.Run
   at Duplicati.Library.Main.Controller.RunAction[T]
   at Duplicati.Library.Main.Controller.Backup
   at Duplicati.CommandLine.Commands.Backup
   at Duplicati.CommandLine.Program.RunCommandLine
>Exit code: 100

With this patch, backup completes successfully.
2017-05-28 16:01:18 -07:00
vnau 8f6aacb8c6 AlternativeFTP Backend: Check access permissions (Read/Write/Delete) using test file during connection test.
Issue: #2473
2017-05-24 01:39:30 +07:00
Kenneth Skovhede 156f9c4982 Merge branch 'feature/improve_backup_speed' 2017-05-19 11:13:46 +02:00
Kenneth Skovhede 6cadaad56a Rewrote the query to use CROSS JOIN to force the SQLite query planner to consider the File table first. 2017-05-19 08:07:39 +02:00
Kenneth Skovhede d9014ee09c Changed query as suggested by @sjonez in issue #2442.
This fixes #2442.
2017-05-18 23:40:24 +02:00
Kenneth Skovhede 54f57bf674 Fixed setting the contentlength and checking if it is possible to set the AllowWriteStreamBuffering property.
This fixes #2483
2017-05-18 23:21:48 +02:00
Kenneth Skovhede bf7d36e380 Merge branch 'feature/fix_regex_listing' 2017-05-17 12:57:19 +02:00
Kenneth Skovhede 28ecfc9052 Merge branch 'feature/rework_buffer_avoidance' 2017-05-17 12:57:13 +02:00
Kenneth Skovhede b0be676dc4 Updating MailKit and AlphaVSS 2017-05-17 11:10:00 +02:00
Kenneth Skovhede 046b522a8d Updated NewtonSoft.Json 2017-05-17 11:08:51 +02:00
Kenneth Skovhede fd14c1649b Fixed the query used to search for files.
This fixes #2471
2017-05-17 11:00:43 +02:00
Kenneth Skovhede 5068e51ea7 Fixed the buffer avoidance flag for Delete in AMZCD. 2017-05-17 10:59:47 +02:00
Kenneth Skovhede 55e230ff49 Reworked the way the AllowWriteBuffering flag is set to fix errors caused by ContentLength not being set. 2017-05-17 10:59:07 +02:00
Kenneth Skovhede 015a92343f Avoids inserting delays if the same operation is performed repeatedly on AMZCD.
This should help with #1893
2017-04-21 12:55:29 +02:00
Kenneth Skovhede f9e5eeae0c Experiment to see if out-of-memory issues are solved by disabling the write buffer on HTTP requests.
This should help with #2320 and #2432
2017-04-17 21:47:58 +02:00
Carlo zED Caputo 6fa6287cf0 ïnserted database upgrade on project resources 2017-04-15 04:03:38 -03:00
Kenneth Skovhede 5b4c7103f2 Added guard to prevent reading the stream further if it was already depleted.
Without this guard, it would be possible to extend the stream during processing and send wrong blocks forward.
This is likely a fix for issue #1400 and #2402
2017-04-11 21:21:02 +02:00
Carlo "zED" Caputo 3e0447f342 Faster database recreation 2017-04-11 16:20:42 -03:00
Kenneth Skovhede 1da9842546 Fixed duplicate string in S3 bucket regions 2017-04-09 21:58:37 +02:00
Kenneth Skovhede 3c45acd745 Made the order of picking compositional filter elements more explicit to avoid returning null values unless both filters are null 2017-04-06 12:37:42 +02:00
Kenneth Skovhede fe96e3a021 Rewrote the logic to check the full filter and not just the commandline arguments when guessing which kind of list to return. 2017-04-06 11:54:22 +02:00
Kenneth Skovhede 62dc8e2178 Updated the UI commandline interface to work correctly with the status bar 2017-04-06 10:10:22 +02:00
Kenneth Skovhede eef7281d10 Added a multi-target message sink helper 2017-04-06 10:09:37 +02:00
Kenneth Skovhede 979ee0c585 Updated list of AWS S3 regions and servers 2017-04-05 22:44:40 +02:00
Kenneth Skovhede c99b23c1d5 Merge branch 'feature/commandline_ui' 2017-04-05 09:29:01 +02:00
Kenneth Skovhede 5bbb484cd3 Rewrote ListAffected and ListChanges to support a callback, such that the entire lists are not required to be materialized 2017-04-04 23:53:36 +02:00
Kenneth Skovhede d1746ca38c Added a --full-result commandline option to allow getting full file listings, without verbose output 2017-04-04 23:51:40 +02:00
Kenneth Skovhede 360a90b2ce Updated SharpCompress to a build from master to include the zip64 fixes 2017-04-04 17:11:01 +02:00
Dan Stahr 27c9e15875 Improved database performance and logging
- Don't use Vacuum() just before PurgeLogData (which performs vacuum() already)
 - Removed unncessary poorly performning query (after optimizing it I found out it's unused)
 - Correctly log calls for ExecuteScalarInt64
2017-03-23 15:22:58 +00:00
Kenneth Skovhede 29f67674a5 Comment fix 2017-03-22 23:25:47 +01:00
Albertony 4e1a638fca Fixed issue #2066: The command create-report appends zip even if output-file name already ends with .zip 2017-03-20 13:35:30 +01:00
Kenneth SkovhedeandGitHub e4e1291800 Merge pull request #2385 from koo5/tahoe_lafs_uri_message_fix
tahoe_lafs_uri_message_fix
2017-03-17 11:02:57 +01:00
Kenneth SkovhedeandGitHub a494761e78 Merge pull request #2383 from mnaiman/mail_string
updated description for mail server
2017-03-17 11:01:01 +01:00
koo5 f692b76650 tahoe_lafs_uri_message_fix 2017-03-17 10:55:37 +01:00
Max b820d970ac updated description 2017-03-16 22:57:41 +01:00