mirror of
https://github.com/restic/restic.git
synced 2025-10-09 15:30:24 +00:00
Include inode in JSON output for find and ls
This introduces the inode attribute to the JSON output emitted for nodes in `ls` and matches in `find`. There doesn't seem to be any discernible reason to omit the inode and it can be useful in scripting scenarios.
This commit is contained in:
@@ -277,6 +277,8 @@ Match object
|
||||
+-----------------+----------------------------------------------+
|
||||
| ``group`` | Name of group |
|
||||
+-----------------+----------------------------------------------+
|
||||
| ``inode`` | Inode number |
|
||||
+-----------------+----------------------------------------------+
|
||||
| ``mode`` | UNIX file mode, shorthand of ``permissions`` |
|
||||
+-----------------+----------------------------------------------+
|
||||
| ``device_id`` | OS specific device identifier |
|
||||
@@ -470,6 +472,8 @@ node
|
||||
+-----------------+--------------------------+
|
||||
| ``ctime`` | Node creation time |
|
||||
+-----------------+--------------------------+
|
||||
| ``inode`` | Inode number of node |
|
||||
+-----------------+--------------------------+
|
||||
|
||||
|
||||
restore
|
||||
|
Reference in New Issue
Block a user