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
Kenneth Skovhede
9093603be1
Added support for disabling the file scanner during backups.
...
This fixes #2963
2018-02-11 20:57:38 +01:00
Kenneth Skovhede
e65d38e235
Updated the unittest to not use the deprecated NUnit attributes
2018-02-01 09:48:55 +01:00
Kenneth Skovhede
76aae5de7b
Changed the logic for getting the last-modified timestamp from the database.
...
Now we only look at the timestamp from the previous fileset, instead of for the last time the file was seen.
This should improve lookup times, and thus the running time for backups with many files.
This change means that the following sequence of operations will react differently:
- backup
- delete file
- backup
- undelete file
- backup
Prior to this commit, the undeleted file would be seen with the original timestamp and thus can avoid being scanned for changes.
After this commit, the file will be treated as a new file, even if it has the previous timestamp and will thus be scanned for changes.
An additional switch has been introduced, --check-filetime-only that improves the lookup further by not looking at the metadata or filesize, and thus makes a much lighter call to the database, where fewer tables need to be touched.
2017-01-05 10:03:32 +01:00
Kenneth Skovhede
4bf4871427
Added commandline operation to purge select files from filesets.
...
This fixes #1009 .
This paves the way for #1337 .
2016-12-29 22:41:13 +01:00
Kenneth Skovhede
3939f038ae
Added unitttest to catch problems with metadata computation
2016-11-08 10:47:18 +01:00
Kenneth Skovhede
309bf1648d
Merge branch 'master' into feature/fix_for_different_blockhash_and_filehash_plus_multiblocks_metadata
...
# Conflicts:
# Duplicati/Library/Main/Database/LocalDatabase.cs
# Duplicati/Library/Main/Database/LocalRecreateDatabase.cs
# Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs
# Duplicati/UnitTest/BorderTests.cs
2016-10-17 13:28:27 +02:00
Kenneth Skovhede and GitHub
f3fa60e49f
Upgrade NUnit to use 3.4.1 ( #1959 )
...
Updated NUnit to version 3.4.1 and added some extra display helps to Travis
2016-09-29 13:45:55 +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
d2e01d11b1
Added unittests that tests for setups with no index files, and partial index files.
2016-05-02 20:33:34 +02:00
Kenneth Skovhede
df58a97e15
Improved debug-ability for unittests by not deleting the database, but instead creating a new side-by-side database.
2016-04-06 20:42:52 +02:00
Kenneth Skovhede
d5e4194978
Added extra test for testing with metadata disabled
2016-04-05 00:27:14 +02:00
Kenneth Skovhede
f063143279
Re-enable mixed block/filehash tests as it now works
2016-04-04 18:19:35 +02:00
Kenneth Skovhede
8b448408b3
Cleaned up the border-tests and added a check for restore.
...
The mixed-hash tests fail the restore for files smaller than blocksize, so they are commented out, but should be fixed soon.
2016-04-02 21:54:46 +02:00
Kenneth Skovhede
406ecdd336
Added restore check to unittest
2016-04-01 00:15:56 +02:00
Kenneth Skovhede
450ee501fd
Expanded border tests with additional edge cases
2016-03-31 20:28:08 +02:00
Kenneth Skovhede
6e1a0d3df5
Fixed applying the overrides
2016-03-31 20:15:21 +02:00
Kenneth Skovhede
8d0a42e33d
Added additional unittest to verify that using a different filehash and blockhash works
2016-03-30 20:33:15 +02:00
Kenneth Skovhede
fcff385c35
Added additional test cases to the unittest to check for files with size zero and 1 byte.
2016-03-30 20:32:47 +02:00
Kenneth Skovhede
201c5c99a9
Fixed the unittest to actually test the odd blocksize values
2016-03-27 12:51:02 +02:00
Kenneth Skovhede
057ac8f707
Added additional tests for checking non-standard settings and borderline cases
2016-03-18 14:33:37 +01:00
Kenneth Skovhede
cbe6b959e8
Added new unittest that makes sure strange files with repeated content and sizes around the block-size are handled correctly
2016-03-17 22:23:45 +01:00