mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-23 11:43:17 +00:00
added -tabular to check options
This commit is contained in:
@@ -808,12 +808,13 @@ func checkSnapshots(context *cli.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showStatistics := context.Bool("stats")
|
showStatistics := context.Bool("stats")
|
||||||
|
showTabular := context.Bool("tabular")
|
||||||
checkFiles := context.Bool("files")
|
checkFiles := context.Bool("files")
|
||||||
searchFossils := context.Bool("fossils")
|
searchFossils := context.Bool("fossils")
|
||||||
resurrect := context.Bool("resurrect")
|
resurrect := context.Bool("resurrect")
|
||||||
|
|
||||||
backupManager.SetupSnapshotCache(preference.Name)
|
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")
|
runScript(context, preference.Name, "post")
|
||||||
}
|
}
|
||||||
@@ -1355,6 +1356,10 @@ func main() {
|
|||||||
Name: "stats",
|
Name: "stats",
|
||||||
Usage: "show deduplication statistics (imply -all and all revisions)",
|
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 {
|
cli.StringFlag {
|
||||||
Name: "storage",
|
Name: "storage",
|
||||||
Usage: "retrieve snapshots from the specified storage",
|
Usage: "retrieve snapshots from the specified storage",
|
||||||
|
|||||||
@@ -748,7 +748,7 @@ func (manager *SnapshotManager) ListSnapshots(snapshotID string, revisionsToList
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ListSnapshots shows the information about a snapshot.
|
// 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 {
|
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",
|
LOG_DEBUG("LIST_PARAMETERS", "id: %s, revisions: %v, tag: %s, showStatistics: %t, checkFiles: %t, searchFossils: %t, resurrect: %t",
|
||||||
|
|||||||
Reference in New Issue
Block a user