summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/bbackupquery/BackupQueries.cpp18
-rw-r--r--bin/bbackupquery/BackupQueries.h1
2 files changed, 13 insertions, 6 deletions
diff --git a/bin/bbackupquery/BackupQueries.cpp b/bin/bbackupquery/BackupQueries.cpp
index 1726b960..7ab23441 100644
--- a/bin/bbackupquery/BackupQueries.cpp
+++ b/bin/bbackupquery/BackupQueries.cpp
@@ -207,7 +207,7 @@ void BackupQueries::DoCommand(const char *Command, bool isFromCommandLine)
{ "sh", "" },
{ "getobject", "" },
{ "get", "i" },
- { "compare", "alcqAE" },
+ { "compare", "alcqAEQ" },
{ "restore", "dri" },
{ "help", "" },
{ "usage", "" },
@@ -1114,6 +1114,7 @@ void BackupQueries::CommandCompare(const std::vector<std::string> &args, const b
// Parameters, including count of differences
BackupQueries::CompareParams params;
params.mQuickCompare = opts['q'];
+ params.mQuietCompare = opts['Q'];
params.mIgnoreExcludes = opts['E'];
params.mIgnoreAttributes = opts['A'];
@@ -1177,12 +1178,17 @@ void BackupQueries::CommandCompare(const std::vector<std::string> &args, const b
printf("Incorrect usage.\ncompare -a\n or compare -l <location-name>\n or compare <store-dir-name> <local-dir-name>\n");
return;
}
-
- printf("\n[ %d (of %d) differences probably due to file "
- "modifications after the last upload ]\n"
- "Differences: %d (%d dirs excluded, %d files excluded, "
+
+ if (!params.mQuietCompare)
+ {
+ printf("\n[ %d (of %d) differences probably due to file "
+ "modifications after the last upload ]\n",
+ params.mDifferencesExplainedByModTime,
+ params.mDifferences);
+ }
+
+ printf("Differences: %d (%d dirs excluded, %d files excluded, "
"%d files not checked)\n",
- params.mDifferencesExplainedByModTime, params.mDifferences,
params.mDifferences, params.mExcludedDirs,
params.mExcludedFiles, params.mUncheckedFiles);
diff --git a/bin/bbackupquery/BackupQueries.h b/bin/bbackupquery/BackupQueries.h
index c9540110..b2ef8cc2 100644
--- a/bin/bbackupquery/BackupQueries.h
+++ b/bin/bbackupquery/BackupQueries.h
@@ -67,6 +67,7 @@ private:
~CompareParams();
void DeleteExcludeLists();
bool mQuickCompare;
+ bool mQuietCompare;
bool mIgnoreExcludes;
bool mIgnoreAttributes;
int mDifferences;