Skip to content

Commit

Permalink
Merge pull request #3578 from leo-b/master-logging
Browse files Browse the repository at this point in the history
add chunker_params to archive info (at least to json output) (PR against master)
  • Loading branch information
ThomasWaldmann committed Jan 27, 2018
2 parents e6539ab + 74c10e4 commit 44e5365
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/internals/frontends.rst
Expand Up @@ -328,6 +328,8 @@ command_line
Array of strings of the command line that created the archive

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:

Expand Down Expand Up @@ -363,6 +365,12 @@ The same archive with more information (``borg info --last 1 --json``)::
{
"archives": [
{
"chunker_params": [
13,
23,
16,
4095
],
"command_line": [
"/home/user/.local/bin/borg",
"create",
Expand Down
1 change: 1 addition & 0 deletions src/borg/archive.py
Expand Up @@ -408,6 +408,7 @@ def info(self):
'hostname': self.metadata.hostname,
'username': self.metadata.username,
'comment': self.metadata.get('comment', ''),
'chunker_params': self.metadata.get('chunker_params', ''),
})
return info

Expand Down

0 comments on commit 44e5365

Please sign in to comment.