mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
tag: output the original ID and new snapshotID (#5144)
* tag: output the original ID and new snapshotID tag: print changed snapshot information immediately * print changed snapshot immediately after it has been saved * add message type to the changedSnapshot * add a summary type which will share the JSON output of the numer of changed snapshots * updated verbosity of the changed snapshot in text mode to only work when verbosity > 2 * also use the terminal status printer for a standard handling for stdout messages
This commit is contained in:
@@ -722,6 +722,30 @@ The stats command returns a single JSON object.
|
||||
| ``compression_space_saving`` | Overall space saving due to compression |
|
||||
+------------------------------+-----------------------------------------------------+
|
||||
|
||||
tag
|
||||
---
|
||||
|
||||
The ``tag`` command uses the JSON lines format with the following message types.
|
||||
|
||||
Changed
|
||||
^^^^^^^
|
||||
|
||||
+--------------------------+-------------------------------------------+
|
||||
| ``message_type`` | Always "changed" |
|
||||
+--------------------------+-------------------------------------------+
|
||||
| ``old_snapshot_id`` | ID of the snapshot before the change |
|
||||
+--------------------------+-------------------------------------------+
|
||||
| ``new_snapshot_id`` | ID of the snapshot after the change |
|
||||
+--------------------------+-------------------------------------------+
|
||||
|
||||
Summary
|
||||
^^^^^^^
|
||||
|
||||
+-----------------------------+-------------------------------------------+
|
||||
| ``message_type`` | Always "summary" |
|
||||
+-----------------------------+-------------------------------------------+
|
||||
| ``changed_snapshot_count`` | Total number of changed snapshots |
|
||||
+-----------------------------+-------------------------------------------+
|
||||
|
||||
version
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user