Only output about new backup dirs when requested.
[rsync.git] / main.c
diff --git a/main.c b/main.c
index 4613c96235ecf263810e08123aada86033d70816..e2b93c6e6ed53ab9d9d28aadd8773dc2006b2c5e 100644 (file)
--- a/main.c
+++ b/main.c
@@ -865,7 +865,8 @@ static int do_recv(int f_in, int f_out, char *local_name)
                                rprintf(FERROR, "Failed to stat %s: %s\n", backup_dir_buf, strerror(errno));
                                exit_cleanup(RERR_FILEIO);
                        }
-                       rprintf(FINFO, "(new) backup_dir is %s\n", backup_dir_buf);
+                       if (INFO_GTE(BACKUP, 1))
+                               rprintf(FINFO, "(new) backup_dir is %s\n", backup_dir_buf);
                } else if (INFO_GTE(BACKUP, 1))
                        rprintf(FINFO, "backup_dir is %s\n", backup_dir_buf);
                if (backup_dir_len > 1)