From 8e8a116028ac821a4b3286bb1fa4936d5c013236 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Thu, 11 Jan 2018 21:43:42 -0500 Subject: [PATCH] Fixed a bug that caused -hash to have no effect --- src/duplicacy_backupmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_backupmanager.go b/src/duplicacy_backupmanager.go index 5d95f96..23996cb 100644 --- a/src/duplicacy_backupmanager.go +++ b/src/duplicacy_backupmanager.go @@ -284,7 +284,7 @@ func (manager *BackupManager) Backup(top string, quickMode bool, threads int, ta // we simply treat all files as if they were new, and break them into chunks. // Otherwise, we need to find those that are new or recently modified - if remoteSnapshot.Revision == 0 && incompleteSnapshot == nil { + if (remoteSnapshot.Revision == 0 || !quickMode) && incompleteSnapshot == nil { modifiedEntries = localSnapshot.Files for _, entry := range modifiedEntries { totalModifiedFileSize += entry.Size