mirror of
https://github.com/borgbase/vorta
synced 2024-12-21 23:33:13 +00:00
Added --content-only flag for borg 1.2.4 in diff view
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@gmail.com>
This commit is contained in:
parent
d0245977d2
commit
e0fe766051
2 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
'ZSTD': parse_version('1.1.4'),
|
||||
'JSON_LOG': parse_version('1.1.0'),
|
||||
'DIFF_JSON_LINES': parse_version('1.1.16'),
|
||||
'DIFF_CONTENT_ONLY': parse_version('1.2.4'),
|
||||
'COMPACT_SUBCOMMAND': parse_version('1.2.0a1'),
|
||||
'V122': parse_version('1.2.2'),
|
||||
'V2': parse_version('2.0.0b1'),
|
||||
|
|
|
@ -28,6 +28,9 @@ def prepare(cls, profile, archive_name_1, archive_name_2):
|
|||
ret['cmd'].append('--json-lines')
|
||||
ret['json_lines'] = True
|
||||
|
||||
if borg_compat.check('DIFF_CONTENT_ONLY'):
|
||||
ret['cmd'].append('--content-only')
|
||||
|
||||
if borg_compat.check('V2'):
|
||||
ret['cmd'].extend(['-r', profile.repo.url, archive_name_1, archive_name_2])
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue