Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Fix misleading log message with --dry-run - fixes #1309

Nick Craig-Woodbc25190fc719
diff --git a/fs/operations.go b/fs/operations.go
index 9adcff4bf..752203106 100644
--- a/fs/operations.go
+++ b/fs/operations.go
@@ -447,7 +447,7 @@ func deleteFileWithBackupDir(dst Object, backupDir Fs) (err error) {
if err != nil {
Stats.Error()
Errorf(dst, "Couldn't %s: %v", action, err)
- } else {
+ } else if !Config.DryRun {
Infof(dst, actioned)
}
Stats.DoneChecking(dst.Remote())