فهرست منبع

Merge pull request #3555 from leo-b/1.1-maint-archive-metadata

add chunker_params to borg archive info (--json)
TW 7 سال پیش
والد
کامیت
b602612a40
2فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 8 0
      docs/internals/frontends.rst
  2. 1 0
      src/borg/archive.py

+ 8 - 0
docs/internals/frontends.rst

@@ -328,6 +328,8 @@ command_line
     Array of strings of the command line that created the archive
     Array of strings of the command line that created the archive
 
 
     The note about paths from above applies here as well.
     The note about paths from above applies here as well.
+chunker_params
+    The chunker parameters the archive has been created with.
 
 
 :ref:`borg_info` further has:
 :ref:`borg_info` further has:
 
 
@@ -363,6 +365,12 @@ The same archive with more information (``borg info --last 1 --json``)::
     {
     {
         "archives": [
         "archives": [
             {
             {
+                "chunker_params": [
+                    13,
+                    23,
+                    16,
+                    4095
+                ],
                 "command_line": [
                 "command_line": [
                     "/home/user/.local/bin/borg",
                     "/home/user/.local/bin/borg",
                     "create",
                     "create",

+ 1 - 0
src/borg/archive.py

@@ -399,6 +399,7 @@ class Archive:
                 'hostname': self.metadata.hostname,
                 'hostname': self.metadata.hostname,
                 'username': self.metadata.username,
                 'username': self.metadata.username,
                 'comment': self.metadata.get('comment', ''),
                 'comment': self.metadata.get('comment', ''),
+                'chunker_params': self.metadata.get('chunker_params', ''),
             })
             })
         return info
         return info