|
@@ -209,9 +209,9 @@ Standard output
|
|
*stdout* is different and more command-dependent than logging. Commands like :ref:`borg_info`, :ref:`borg_create`
|
|
*stdout* is different and more command-dependent than logging. Commands like :ref:`borg_info`, :ref:`borg_create`
|
|
and :ref:`borg_list` implement a ``--json`` option which turns their regular output into a single JSON object.
|
|
and :ref:`borg_list` implement a ``--json`` option which turns their regular output into a single JSON object.
|
|
|
|
|
|
-Dates are formatted according to ISO-8601 in local time. Neither an explicit time zone nor microseconds
|
|
|
|
-are specified *at this time* (subject to change). The equivalent strftime format string is '%Y-%m-%dT%H:%M:%S',
|
|
|
|
-e.g. 2017-08-07T12:27:20.
|
|
|
|
|
|
+Dates are formatted according to ISO 8601 in local time. No explicit time zone is specified *at this time*
|
|
|
|
+(subject to change). The equivalent strftime format string is '%Y-%m-%dT%H:%M:%S.%f',
|
|
|
|
+e.g. ``2017-08-07T12:27:20.123456``.
|
|
|
|
|
|
The root object at least contains a *repository* key with an object containing:
|
|
The root object at least contains a *repository* key with an object containing:
|
|
|
|
|
|
@@ -268,7 +268,7 @@ Example *borg info* output::
|
|
},
|
|
},
|
|
"repository": {
|
|
"repository": {
|
|
"id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
"id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
- "last_modified": "2017-08-07T12:27:20",
|
|
|
|
|
|
+ "last_modified": "2017-08-07T12:27:20.789123",
|
|
"location": "/home/user/testrepo"
|
|
"location": "/home/user/testrepo"
|
|
},
|
|
},
|
|
"security_dir": "/home/user/.config/borg/security/0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
"security_dir": "/home/user/.config/borg/security/0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
@@ -329,7 +329,7 @@ Example of a simple archive listing (``borg list --last 1 --json``)::
|
|
{
|
|
{
|
|
"id": "80cd07219ad725b3c5f665c1dcf119435c4dee1647a560ecac30f8d40221a46a",
|
|
"id": "80cd07219ad725b3c5f665c1dcf119435c4dee1647a560ecac30f8d40221a46a",
|
|
"name": "host-system-backup-2017-02-27",
|
|
"name": "host-system-backup-2017-02-27",
|
|
- "start": "2017-08-07T12:27:20"
|
|
|
|
|
|
+ "start": "2017-08-07T12:27:20.789123"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
"encryption": {
|
|
"encryption": {
|
|
@@ -337,7 +337,7 @@ Example of a simple archive listing (``borg list --last 1 --json``)::
|
|
},
|
|
},
|
|
"repository": {
|
|
"repository": {
|
|
"id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
"id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
- "last_modified": "2017-08-07T12:27:20",
|
|
|
|
|
|
+ "last_modified": "2017-08-07T12:27:20.789123",
|
|
"location": "/home/user/repository"
|
|
"location": "/home/user/repository"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -355,14 +355,14 @@ The same archive with more information (``borg info --last 1 --json``)::
|
|
],
|
|
],
|
|
"comment": "",
|
|
"comment": "",
|
|
"duration": 5.641542,
|
|
"duration": 5.641542,
|
|
- "end": "2017-02-27T12:27:20",
|
|
|
|
|
|
+ "end": "2017-02-27T12:27:20.789123",
|
|
"hostname": "host",
|
|
"hostname": "host",
|
|
"id": "80cd07219ad725b3c5f665c1dcf119435c4dee1647a560ecac30f8d40221a46a",
|
|
"id": "80cd07219ad725b3c5f665c1dcf119435c4dee1647a560ecac30f8d40221a46a",
|
|
"limits": {
|
|
"limits": {
|
|
"max_archive_size": 0.0001330855110409714
|
|
"max_archive_size": 0.0001330855110409714
|
|
},
|
|
},
|
|
"name": "host-system-backup-2017-02-27",
|
|
"name": "host-system-backup-2017-02-27",
|
|
- "start": "2017-02-27T12:27:20",
|
|
|
|
|
|
+ "start": "2017-02-27T12:27:20.789123",
|
|
"stats": {
|
|
"stats": {
|
|
"compressed_size": 1880961894,
|
|
"compressed_size": 1880961894,
|
|
"deduplicated_size": 2791,
|
|
"deduplicated_size": 2791,
|
|
@@ -388,7 +388,7 @@ The same archive with more information (``borg info --last 1 --json``)::
|
|
},
|
|
},
|
|
"repository": {
|
|
"repository": {
|
|
"id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
"id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
|
|
- "last_modified": "2017-08-07T12:27:20",
|
|
|
|
|
|
+ "last_modified": "2017-08-07T12:27:20.789123",
|
|
"location": "/home/user/repository"
|
|
"location": "/home/user/repository"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -406,8 +406,8 @@ Refer to the *borg list* documentation for the available keys and their meaning.
|
|
|
|
|
|
Example (excerpt) of ``borg list --json-lines``::
|
|
Example (excerpt) of ``borg list --json-lines``::
|
|
|
|
|
|
- {"type": "d", "mode": "drwxr-xr-x", "user": "user", "group": "user", "uid": 1000, "gid": 1000, "path": "linux", "healthy": true, "source": "", "linktarget": "", "flags": null, "isomtime": "2017-02-27T12:27:20", "size": 0}
|
|
|
|
- {"type": "d", "mode": "drwxr-xr-x", "user": "user", "group": "user", "uid": 1000, "gid": 1000, "path": "linux/baz", "healthy": true, "source": "", "linktarget": "", "flags": null, "isomtime": "2017-02-27T12:27:20", "size": 0}
|
|
|
|
|
|
+ {"type": "d", "mode": "drwxr-xr-x", "user": "user", "group": "user", "uid": 1000, "gid": 1000, "path": "linux", "healthy": true, "source": "", "linktarget": "", "flags": null, "mtime": "2017-02-27T12:27:20.023407", "size": 0}
|
|
|
|
+ {"type": "d", "mode": "drwxr-xr-x", "user": "user", "group": "user", "uid": 1000, "gid": 1000, "path": "linux/baz", "healthy": true, "source": "", "linktarget": "", "flags": null, "mtime": "2017-02-27T12:27:20.585407", "size": 0}
|
|
|
|
|
|
.. _msgid:
|
|
.. _msgid:
|
|
|
|
|