diff --git a/duplicacy/duplicacy_main.go b/duplicacy/duplicacy_main.go index 955fd74..fbf425b 100644 --- a/duplicacy/duplicacy_main.go +++ b/duplicacy/duplicacy_main.go @@ -808,12 +808,13 @@ func checkSnapshots(context *cli.Context) { } showStatistics := context.Bool("stats") + showTabular := context.Bool("tabular") checkFiles := context.Bool("files") searchFossils := context.Bool("fossils") resurrect := context.Bool("resurrect") backupManager.SetupSnapshotCache(preference.Name) - backupManager.SnapshotManager.CheckSnapshots(id, revisions, tag, showStatistics, checkFiles, searchFossils, resurrect) + backupManager.SnapshotManager.CheckSnapshots(id, revisions, tag, showStatistics, showTabular, checkFiles, searchFossils, resurrect) runScript(context, preference.Name, "post") } @@ -1355,6 +1356,10 @@ func main() { Name: "stats", Usage: "show deduplication statistics (imply -all and all revisions)", }, + cli.BoolFlag { + Name: "tabular", + Usage: "show tabular usage and deduplication statistics (imply -stats, -all, and all revisions)", + }, cli.StringFlag { Name: "storage", Usage: "retrieve snapshots from the specified storage", diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 9f3137f..420f049 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -748,7 +748,7 @@ func (manager *SnapshotManager) ListSnapshots(snapshotID string, revisionsToList } // ListSnapshots shows the information about a snapshot. -func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToCheck []int, tag string, showStatistics bool, +func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToCheck []int, tag string, showStatistics bool, showTabular bool, checkFiles bool, searchFossils bool, resurrect bool) bool { LOG_DEBUG("LIST_PARAMETERS", "id: %s, revisions: %v, tag: %s, showStatistics: %t, checkFiles: %t, searchFossils: %t, resurrect: %t",