Commit Graph
1594 Commits
Author SHA1 Message Date
Kenneth Skovhede 39f719e094 Bugfix with cleanup 2013-04-09 20:45:11 +02:00
Kenneth Skovhede fd4510edd2 Rewrite of transaction handling, so the database is more closely mimicking the actual remote backend state.
This also removes all multi-threaded calls to the database as they were not working as expected.
The transactions are now used to keep the database in a sane state, but as far as possible log all messages from the connection to the database without using cross-thread requests.
Also fixed some errors with cleanup and rewrote some of the remote filename parsing and validation.
2013-04-09 20:44:53 +02:00
Kenneth Skovhede 6ff8ef7ac7 Style fix 2013-04-08 22:30:12 +02:00
Kenneth Skovhede 709c4ee15a Improved check for compacting 2013-04-08 22:29:50 +02:00
Kenneth Skovhede 765078bca4 Fixed bug where blocklisthashes would be marked as unused in volumes 2013-04-08 22:29:04 +02:00
Kenneth Skovhede 064593bc14 Removed debug output 2013-04-08 22:28:28 +02:00
Kenneth Skovhede 63be6f3afd SQL Style fix 2013-04-08 22:25:30 +02:00
Kenneth Skovhede 91935a5315 Added shaddowblock link to keep track of what shadow files to delete 2013-04-08 22:24:54 +02:00
Kenneth Skovhede d6d11fff20 Improved error message when attempting to re-create the database 2013-04-08 22:21:45 +02:00
Kenneth Skovhede 8391e7bcfe Moved VolumeID out into base class 2013-04-08 22:21:03 +02:00
Kenneth Skovhede fd5a9b6f7c Improved access speed to zip-based archives 2013-04-08 22:20:21 +02:00
Kenneth Skovhede 40c85e1cb8 Improved error message if the user forgets to type the target url 2013-04-08 22:19:42 +02:00
Kenneth Skovhede 23e675077e Fixed issue when running with no console attached 2013-04-08 22:19:19 +02:00
Kenneth Skovhede d38d90e841 Added some placeholder text for foresthash 2013-04-07 09:18:04 +02:00
Kenneth Skovhede 2042485bd7 Added support for %FHOPTIONS% in help.txt 2013-04-07 09:15:30 +02:00
Kenneth Skovhede f378d6d188 Better fix for guarding against single-volume compact attempts 2013-04-07 09:10:04 +02:00
Kenneth Skovhede ae968bc626 Does not try to compact, if there are only delete able volume 2013-04-07 09:03:54 +02:00
Kenneth Skovhede 3ea8c7478a Fixed removing DeletedBlocks on volume delete 2013-04-07 09:03:23 +02:00
Kenneth Skovhede bef04017de Bugfix 2013-04-07 09:02:55 +02:00
Kenneth Skovhede e782d5c89d Renamed lookup table options from *-size to *-memory to make it clearer that it affects only memory allocation 2013-04-07 08:26:40 +02:00
Kenneth Skovhede 7c5b3043a8 More work on ForestHash 2013-04-06 15:28:43 +02:00
Kenneth Skovhede 4fefbd1645 Work on the block hash format, this should be the last db-restructure 2013-04-06 13:46:58 +02:00
Kenneth Skovhede 6ff1f39540 Fixed a bug in the missing file report and end-of-backup check 2013-04-05 10:22:00 +02:00
Kenneth Skovhede a87d1d71ae Overhaul that fixes some minor issues and leaves the database much cleaner after a restore.
Also added extra checks to the manifest to reflect the possibility of choosing another hash algorithm.
2013-04-04 20:34:26 +02:00
Kenneth Skovhede f55b5acf1e Added filenames of missing files to error messages. 2013-04-03 21:11:16 +02:00
Kenneth Skovhede 34f88cd9ad Added --auto-cleanup handler for backup, when the volume is small 2013-04-03 21:09:30 +02:00
Kenneth Skovhede fb467929dd Fixed faulty logging of backend operations.
Added console output when doing remote operations.
2013-04-03 21:08:54 +02:00
Kenneth Skovhede 4566ea1c3d Refactored the local database.
Fixed an issue when recreating the database, the operation was not created, making compact and delete commands not working.
2013-04-03 21:06:27 +02:00
Kenneth Skovhede a564891b79 Implemented FindLastFileVersion with and without local database support 2013-04-01 15:06:31 +02:00
Kenneth Skovhede 49173b6961 Bugfix 2013-04-01 15:05:44 +02:00
Kenneth Skovhede b09086a534 Added auto-compact after backup if the volume is small 2013-04-01 15:05:33 +02:00
Kenneth Skovhede a3450fa878 Missing commit 2013-04-01 15:04:41 +02:00
Kenneth Skovhede 62e00308a6 Bugfix to the delete-filesets 2013-04-01 15:04:22 +02:00
Kenneth Skovhede a9a67d0203 Added log warning if listing files with no local database 2013-04-01 13:05:55 +02:00
Kenneth Skovhede 5ea0322fd1 Added guards to prevent calling unsupported methods from CLI 2013-04-01 13:05:12 +02:00
Kenneth Skovhede 42ab9c64fb Updated the CLI documentation text with FH stuff 2013-04-01 13:03:59 +02:00
Kenneth Skovhede 30517302ea Removed unsupported list-source-folders as that is irrelevant to ForestHash 2013-04-01 10:50:29 +02:00
Kenneth Skovhede df60bd4fd2 Updated the compact handler to use the AsyncDownloader instead of the makeshift version it was using 2013-03-31 19:34:42 +02:00
Kenneth Skovhede 1a975d8eac Moved the existing database file check into the operation 2013-03-31 19:33:58 +02:00
Kenneth Skovhede 499745220d Improved cleanup to report the file sets that reference a non-accesible block
Added command to allow deleting specific filesets
2013-03-31 19:33:34 +02:00
Kenneth Skovhede 383e7dfeb9 Added option verification to various command 2013-03-31 19:28:46 +02:00
Kenneth Skovhede 2c338fecf5 Renamed the internal option name to avoid confusion 2013-03-31 19:27:32 +02:00
Kenneth Skovhede 778699326a Added incompatible option detection 2013-03-31 19:25:59 +02:00
Kenneth Skovhede d64449b48f Work on the cleanup procedure, not tested yet and does not handle cases where some blocks are missing. 2013-03-30 15:23:09 +01:00
Kenneth Skovhede bbfd00ad06 Added support for dry-run with restore 2013-03-29 14:13:31 +01:00
Kenneth Skovhede 5a8435408d Added support for dry-run with backup, still need to add it for restore 2013-03-28 15:47:20 +01:00
Kenneth Skovhede 6e5a62319c Fixed copy-paste error 2013-03-28 13:40:18 +01:00
Kenneth Skovhede 77e3e97bf3 Fixed a typo. 2013-03-27 16:10:47 +01:00
Kenneth Skovhede 09c8c4a87b Fixed a typo. 2013-03-27 16:09:35 +01:00
Kenneth Skovhede cfda6c4abb Major overhaul, which includes the option to select hash algorithm.
Implemented delete-all-but-n and delete-older-than.
Implemented compacting.
Added the --dry-run option, which currently works for deleting and compacting, but not restore or backup.
Added output to console for use with dry-run, and added option to redirect this to the log for use in service mode.
2013-03-27 16:06:45 +01:00