mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-06 13:44:40 -06:00
Don't compute file hashes when DUPLICACY_SKIP_FILE_HASH is set; handle vertical backup-style hashes in restore
This commit is contained in:
@@ -1084,7 +1084,7 @@ func (manager *SnapshotManager) RetrieveFile(snapshot *Snapshot, file *Entry, ou
|
||||
if alternateHash {
|
||||
fileHash = "#" + fileHash
|
||||
}
|
||||
if strings.ToLower(fileHash) != strings.ToLower(file.Hash) {
|
||||
if strings.ToLower(fileHash) != strings.ToLower(file.Hash) && !SkipFileHash {
|
||||
LOG_WARN("SNAPSHOT_HASH", "File %s has mismatched hashes: %s vs %s", file.Path, file.Hash, fileHash)
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user