2017-06-06 22:06:36 +00:00
|
|
|
.. include:: diff.rst.inc
|
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg diff archive1 archive2
|
2021-03-09 23:08:52 +00:00
|
|
|
+17 B -5 B [-rw-r--r-- -> -rwxr-xr-x] file1
|
2017-06-06 22:06:36 +00:00
|
|
|
+135 B -252 B file2
|
|
|
|
added 0 B file4
|
|
|
|
removed 0 B file3
|
2021-03-09 23:08:52 +00:00
|
|
|
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg diff archive1 archive2
|
2021-03-09 23:08:52 +00:00
|
|
|
{"path": "file1", "changes": [{"type": "modified", "added": 17, "removed": 5}, {"type": "mode", "old_mode": "-rw-r--r--", "new_mode": "-rwxr-xr-x"}]}
|
|
|
|
{"path": "file2", "changes": [{"type": "modified", "added": 135, "removed": 252}]}
|
|
|
|
{"path": "file4", "changes": [{"type": "added", "size": 0}]}
|
2022-06-23 23:19:19 +00:00
|
|
|
{"path": "file3", "changes": [{"type": "removed", "size": 0}]}
|
2022-07-04 22:38:37 +00:00
|
|
|
|