Commit Graph
1030 Commits
Author SHA1 Message Date
Kenneth Skovhede c9e984e1ce Fixed swapped long/short strings.
This fixes #2659
2017-08-28 11:52:11 +02:00
Kenneth Skovhede 81adcf17c9 Added new strings to the error messages as requested in #2629.
This fixes #2629
2017-08-11 09:58:49 +02:00
Dan Stahr 7c9b2fcd83 Fixed missed vacuum reference. 2017-08-04 12:26:15 +01:00
Dan Stahr 58a95e03e6 Autovacuum option added 2017-08-04 12:09:01 +01:00
Dan Stahr 8c2280c86c Issue #2578: Removed all direct calls to VACUUM and added a command to run VACUUM manually 2017-08-04 11:24:18 +01:00
Kenneth Skovhede 6c5dee6079 Added comments 2017-06-27 22:00:44 +02:00
Kenneth Skovhede 9433c34e5e Also use %LOCALAPPDATA% for storing the database and config for the commandline on Windows.
This fixes #2348
This adresses parts of #2222
2017-06-27 21:45:04 +02:00
Kenneth Skovhede 591742d271 Merge branch 'feature/add_throttle_ui'
# Conflicts:
#	Duplicati/Server/webroot/ngax/styles/style.css
2017-06-20 14:53:13 +02:00
Kenneth Skovhede 2f11bcd294 Merge branch 'feature/update_ui_texts' 2017-06-20 13:58:10 +02:00
Kenneth Skovhede a2b5b01048 Fixed a case where aborting the thread does not trigger an exception, and thus keeps running 2017-06-20 13:04:37 +02:00
Kenneth Skovhede da0de9983b Implemented the live throttle control.
This fixes #1730
This fixes #1261
2017-06-20 13:00:52 +02:00
Kenneth Skovhede a0d9ad5d4e Changed --backup-prefix hint texts to --prefix.
This fixes #2548
2017-06-19 22:06:35 +02:00
Kenneth Skovhede c5de213635 Added the unique constraint.
This fixes #2302
This fixes #2537
2017-06-15 10:07:58 +02:00
Kenneth Skovhede f1793b82dd Merge branch 'master' of https://github.com/zed9h/duplicati into zed9h-master 2017-06-15 09:54:28 +02:00
agrajaghh 4b45cbdcaa fix typo 2017-06-14 23:30:21 +02:00
Kenneth SkovhedeandGitHub e88afa4361 Merge pull request #2528 from IGTHORN/master
Bug fix for "Include/Exclude filters not available to run-script" #2440
2017-06-14 23:09:57 +02:00
jondoe a643ed230a Updated fix for #2440 based on review feedback. 2017-06-14 20:38:09 +02:00
Dan Stahr 3ef13d2c57 Fixed a condition in ListChangesHandler.
The compare command was failing with ArgumentNullException.
2017-06-10 09:34:45 +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 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
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
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 bf7d36e380 Merge branch 'feature/fix_regex_listing' 2017-05-17 12:57:19 +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
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 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 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
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
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
Albertony e2d7759d94 Dont create folder in AppData unnecessarily 2017-03-14 13:08:49 +01:00
Dan Stahr af14151d91 Fixed an error in renaming absolute Windows paths.
Previously, the output of the first replace was never used and therefore the absolute Windows paths were not restored
correctly.

The two patterns (i.e. ?: and \\) are disjoint so rewriting the previous result in case a match is found
for the second one is OK.
2017-03-10 22:01:24 +00:00
Kenneth Skovhede 17a407f7ec Merge branch 'feature/update_google_drive_paging' 2017-03-03 21:46:49 +01:00
Kenneth Skovhede b362614bf5 Updated the verification to use deep verification to test archive readability when the verify is invoked directly.
When invoking the verification after the backup, the deep verification is off by default.
2017-03-03 20:52:04 +01:00
Kenneth Skovhede 33ea12b7fe Added some readonly flags to signal non-changing variables 2017-03-03 20:50:36 +01:00
Kenneth Skovhede 43d079fc28 Fixed the help text for the --prefix option to explain that it does not allow hyphens. 2017-02-28 10:06:25 +01:00
Kenneth Skovhede f9b4b777ed Merge branch 'feature/improve_information_collection_from_verify' 2017-02-27 10:16:24 +01:00
Kenneth Skovhede f41c29f27a Fixed some doc strings, and made the informational message UserInformationException 2017-02-27 09:09:52 +01:00
Kenneth Skovhede 8c8a0907c0 Added checks to ensure that hyphens are not used in --prefix as that would make it possible to craft prefixes that confuse the filename parser, e.g. --prefix=duplicati-b1234.zip
This fixes #2295
2017-02-27 09:09:02 +01:00
Kenneth Skovhede 5919309da9 Added additional checks to attempt to gather information from the remote destination, if the local database is somehow missing the size or hash 2017-02-27 00:43:06 +01:00
Kenneth SkovhedeandGitHub e2dc4f8e84 Merge pull request #2318 from jmhardison/errormessage-incorrectword
Word change.
2017-02-16 23:17:05 +01:00
Kenneth Skovhede 9894facd51 Improved the logic around the abort functionality to avoid hanging while performing a retry delay 2017-02-14 10:28:59 +01:00