![]() So what I am proposing does not remove any steps from the current algorithm, it just adds an additional step to skip files in place whose hash value haven’t changed. If that file was moved or renamed, then it would proceed as it does now: Put the moved/renamed files into chunks and - if they don’t exist already - upload those chunks. Yes, it should compare against the file with the same file- and pathname. ![]() What if that file moved location? Or was renamed. It could compare the previous hash of the file with the same pathname. ![]() Well, so what if it doesn’t? Is the purpose of -hash to “clean up” your chunks or to catch files that haven’t been backed up because their content changed without the timestamp changing? I had always assumed the latter. Though most chunks shouldn’t require re-uploading, it still assumes all files have been touched. If you’ve moved a lot of files about, deleted stuff, added new files, a backup with -hash will ensure these are repacked. This wouldn’t clean up the remnants of old files still stuck in partial chunks. And the logs would be much cleaner, since it would only list files whose current hash actually is different from the known hash in the backup set. So there wouldn’t be any need to build all those chunks, just to discard most of them. And if the hash doesn’t match, then the file should be processed further.If the hash matches, the file can be skipped immediately (just like a matching timestamp, when the hash option isn’t used). And then all it needs to do, it to hash the local file and compare to the known file hash.Since the backup will get the list of files with timestamps, it could presumably get the file hashes as well at that point.Perhaps I’m a bit dense, but the current backup behavior doesn’t make any sense to me, if Duplicacy already knows the file hashes. But when asking it to backup with -hash, it recomputes hashes on the chunk level and then checks if the chunk exists on the destination before uploading. One reason is verifying data integrity when doing a restore or with check -files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |