frontends.rst 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. .. include:: ../global.rst.inc
  2. .. highlight:: none
  3. .. _json_output:
  4. All about JSON: How to develop frontends
  5. ========================================
  6. Borg does not have a public API on the Python level. That does not keep you from writing :code:`import borg`,
  7. but does mean that there are no release-to-release guarantees on what you might find in that package, not
  8. even for point releases (1.1.x), and there is no documentation beyond the code and the internals documents.
  9. Borg does on the other hand provide an API on a command-line level. In other words, a frontend should
  10. (for example) create a backup archive just invoke :ref:`borg_create`, give commandline parameters/options
  11. as needed and parse JSON output from borg.
  12. Important: JSON output is expected to be UTF-8, but currently borg depends on the locale being configured
  13. for that (must be a UTF-8 locale and *not* "C" or "ascii"), so that Python will choose to encode to UTF-8.
  14. The same applies to any inputs read by borg, they are expected to be UTF-8 encoded also.
  15. We consider this a bug (see :issue:`2273`) and might fix it later, so borg will use UTF-8 independent of
  16. the locale.
  17. On POSIX systems, you can usually set environment vars to choose a UTF-8 locale:
  18. ::
  19. export LANG=en_US.UTF-8
  20. export LC_CTYPE=en_US.UTF-8
  21. Dealing with non-unicode byte sequences and JSON limitations
  22. ------------------------------------------------------------
  23. Paths on POSIX systems can have arbitrary bytes in them (except 0x00 which is used as string terminator in C).
  24. Nowadays, UTF-8 encoded paths (which decode to valid unicode) are the usual thing, but a lot of systems
  25. still have paths from the past, when other, non-unicode codings were used. Especially old Samba shares often
  26. have wild mixtures of misc. encodings, sometimes even very broken stuff.
  27. borg deals with such non-unicode paths ("with funny/broken characters") by decoding such byte sequences using
  28. UTF-8 coding and "surrogateescape" error handling mode, which maps invalid bytes to special unicode code points
  29. (surrogate escapes). When encoding such a unicode string back to a byte sequence, the original byte sequence
  30. will be reproduced exactly.
  31. JSON should only contain valid unicode text without any surrogate escapes, so we can't just directly have a
  32. surrogate-escaped path in JSON ("path" is only one example, this also affects other text-like content).
  33. Borg deals with this situation like this (since borg 2.0):
  34. For a valid unicode path (no surrogate escapes), the JSON will only have "path": path.
  35. For a non-unicode path (with surrogate escapes), the JSON will have 2 entries:
  36. - "path": path_approximation (pure valid unicode, all invalid bytes will show up as "?")
  37. - "path_b64": path_bytes_base64_encoded (if you decode the base64, you get the original path byte string)
  38. JSON users need to pick whatever suits their needs best. The suggested procedure (shown for "path") is:
  39. - check if there is a "path_b64" key.
  40. - if it is there, you will know that the original bytes path did not cleanly UTF-8-decode into unicode (has
  41. some invalid bytes) and that the string given by the "path" key is only an approximation, but not the precise
  42. path. if you need precision, you must base64-decode the value of "path_b64" and deal with the arbitrary byte
  43. string you'll get. if an approximation is fine, use the value of the "path" key.
  44. - if it is not there, the value of the "path" key is all you need (the original bytes path is its UTF-8 encoding).
  45. Logging
  46. -------
  47. Especially for graphical frontends it is important to be able to convey and reformat progress information
  48. in meaningful ways. The ``--log-json`` option turns the stderr stream of Borg into a stream of JSON lines,
  49. where each line is a JSON object. The *type* key of the object determines its other contents.
  50. .. warning:: JSON logging requires successful argument parsing. Even with ``--log-json`` specified, a
  51. parsing error will be printed in plain text, because logging set-up happens after all arguments are
  52. parsed.
  53. The following types are in use. Progress information is governed by the usual rules for progress information,
  54. it is not produced unless ``--progress`` is specified.
  55. archive_progress
  56. Output during operations creating archives (:ref:`borg_create` and :ref:`borg_recreate`).
  57. The following keys exist, each represents the current progress.
  58. original_size
  59. Original size of data processed so far (before compression and deduplication, may be empty/absent)
  60. compressed_size
  61. Compressed size (may be empty/absent)
  62. deduplicated_size
  63. Deduplicated size (may be empty/absent)
  64. nfiles
  65. Number of (regular) files processed so far (may be empty/absent)
  66. path
  67. Current path (may be empty/absent)
  68. time
  69. Unix timestamp (float)
  70. finished
  71. boolean indicating whether the operation has finished, only the last object for an *operation*
  72. can have this property set to *true*.
  73. progress_message
  74. A message-based progress information with no concrete progress information, just a message
  75. saying what is currently being worked on.
  76. operation
  77. unique, opaque integer ID of the operation
  78. :ref:`msgid <msgid>`
  79. Message ID of the operation (may be *null*)
  80. finished
  81. boolean indicating whether the operation has finished, only the last object for an *operation*
  82. can have this property set to *true*.
  83. message
  84. current progress message (may be empty/absent)
  85. time
  86. Unix timestamp (float)
  87. progress_percent
  88. Absolute progress information with defined end/total and current value.
  89. operation
  90. unique, opaque integer ID of the operation
  91. :ref:`msgid <msgid>`
  92. Message ID of the operation (may be *null*)
  93. finished
  94. boolean indicating whether the operation has finished, only the last object for an *operation*
  95. can have this property set to *true*.
  96. message
  97. A formatted progress message, this will include the percentage and perhaps other information
  98. (absent for finished == true)
  99. current
  100. Current value (always less-or-equal to *total*, absent for finished == true)
  101. info
  102. Array that describes the current item, may be *null*, contents depend on *msgid*
  103. (absent for finished == true)
  104. total
  105. Total value (absent for finished == true)
  106. time
  107. Unix timestamp (float)
  108. file_status
  109. This is only output by :ref:`borg_create` and :ref:`borg_recreate` if ``--list`` is specified. The usual
  110. rules for the file listing applies, including the ``--filter`` option.
  111. status
  112. Single-character status as for regular list output
  113. path
  114. Path of the file system object
  115. log_message
  116. Any regular log output invokes this type. Regular log options and filtering applies to these as well.
  117. time
  118. Unix timestamp (float)
  119. levelname
  120. Upper-case log level name (also called severity). Defined levels are: DEBUG, INFO, WARNING, ERROR, CRITICAL
  121. name
  122. Name of the emitting entity
  123. message
  124. Formatted log message
  125. :ref:`msgid <msgid>`
  126. Message ID, may be *null* or absent
  127. See Prompts_ for the types used by prompts.
  128. .. rubric:: Examples (reformatted, each object would be on exactly one line)
  129. .. highlight:: json
  130. :ref:`borg_extract` progress::
  131. {"message": "100.0% Extracting: src/borgbackup.egg-info/entry_points.txt",
  132. "current": 13000228, "total": 13004993, "info": ["src/borgbackup.egg-info/entry_points.txt"],
  133. "operation": 1, "msgid": "extract", "type": "progress_percent", "finished": false}
  134. {"message": "100.0% Extracting: src/borgbackup.egg-info/SOURCES.txt",
  135. "current": 13004993, "total": 13004993, "info": ["src/borgbackup.egg-info/SOURCES.txt"],
  136. "operation": 1, "msgid": "extract", "type": "progress_percent", "finished": false}
  137. {"operation": 1, "msgid": "extract", "type": "progress_percent", "finished": true}
  138. :ref:`borg_create` file listing with progress::
  139. {"original_size": 0, "compressed_size": 0, "deduplicated_size": 0, "nfiles": 0, "type": "archive_progress", "path": "src"}
  140. {"type": "file_status", "status": "U", "path": "src/borgbackup.egg-info/entry_points.txt"}
  141. {"type": "file_status", "status": "U", "path": "src/borgbackup.egg-info/SOURCES.txt"}
  142. {"type": "file_status", "status": "d", "path": "src/borgbackup.egg-info"}
  143. {"type": "file_status", "status": "d", "path": "src"}
  144. {"original_size": 13176040, "compressed_size": 11386863, "deduplicated_size": 503, "nfiles": 277, "type": "archive_progress", "path": ""}
  145. Internal transaction progress::
  146. {"message": "Saving files cache", "operation": 2, "msgid": "cache.commit", "type": "progress_message", "finished": false}
  147. {"message": "Saving cache config", "operation": 2, "msgid": "cache.commit", "type": "progress_message", "finished": false}
  148. {"message": "Saving chunks cache", "operation": 2, "msgid": "cache.commit", "type": "progress_message", "finished": false}
  149. {"operation": 2, "msgid": "cache.commit", "type": "progress_message", "finished": true}
  150. A debug log message::
  151. {"message": "35 self tests completed in 0.08 seconds",
  152. "type": "log_message", "created": 1488278449.5575905, "levelname": "DEBUG", "name": "borg.archiver"}
  153. Prompts
  154. -------
  155. Prompts assume a JSON form as well when the ``--log-json`` option is specified. Responses
  156. are still read verbatim from *stdin*, while prompts are JSON messages printed to *stderr*,
  157. just like log messages.
  158. Prompts use the *question_prompt* and *question_prompt_retry* types for the prompt itself,
  159. and *question_invalid_answer*, *question_accepted_default*, *question_accepted_true*,
  160. *question_accepted_false* and *question_env_answer* types for information about
  161. prompt processing.
  162. The *message* property contains the same string displayed regularly in the same situation,
  163. while the *msgid* property may contain a msgid_, typically the name of the
  164. environment variable that can be used to override the prompt. It is the same for all JSON
  165. messages pertaining to the same prompt.
  166. .. rubric:: Examples (reformatted, each object would be on exactly one line)
  167. .. highlight:: none
  168. Providing an invalid answer::
  169. {"type": "question_prompt", "msgid": "BORG_CHECK_I_KNOW_WHAT_I_AM_DOING",
  170. "message": "... Type 'YES' if you understand this and want to continue: "}
  171. incorrect answer # input on stdin
  172. {"type": "question_invalid_answer", "msgid": "BORG_CHECK_I_KNOW_WHAT_I_AM_DOING", "is_prompt": false,
  173. "message": "Invalid answer, aborting."}
  174. Providing a false (negative) answer::
  175. {"type": "question_prompt", "msgid": "BORG_CHECK_I_KNOW_WHAT_I_AM_DOING",
  176. "message": "... Type 'YES' if you understand this and want to continue: "}
  177. NO # input on stdin
  178. {"type": "question_accepted_false", "msgid": "BORG_CHECK_I_KNOW_WHAT_I_AM_DOING",
  179. "message": "Aborting.", "is_prompt": false}
  180. Providing a true (affirmative) answer::
  181. {"type": "question_prompt", "msgid": "BORG_CHECK_I_KNOW_WHAT_I_AM_DOING",
  182. "message": "... Type 'YES' if you understand this and want to continue: "}
  183. YES # input on stdin
  184. # no further output, just like the prompt without --log-json
  185. Passphrase prompts
  186. ------------------
  187. Passphrase prompts should be handled differently. Use the environment variables *BORG_PASSPHRASE*
  188. and *BORG_NEW_PASSPHRASE* (see :ref:`env_vars` for reference) to pass passphrases to Borg, don't
  189. use the interactive passphrase prompts.
  190. When setting a new passphrase (:ref:`borg_rcreate`, :ref:`borg_key_change-passphrase`) normally
  191. Borg prompts whether it should display the passphrase. This can be suppressed by setting
  192. the environment variable *BORG_DISPLAY_PASSPHRASE* to *no*.
  193. When "confronted" with an unknown repository, where the application does not know whether
  194. the repository is encrypted, the following algorithm can be followed to detect encryption:
  195. 1. Set *BORG_PASSPHRASE* to gibberish (for example a freshly generated UUID4, which cannot
  196. possibly be the passphrase)
  197. 2. Invoke ``borg list repository ...``
  198. 3. If this fails, due the repository being encrypted and the passphrase obviously being
  199. wrong, you'll get an error with the *PassphraseWrong* msgid.
  200. The repository is encrypted, for further access the application will need the passphrase.
  201. 4. If this does not fail, then the repository is not encrypted.
  202. Standard output
  203. ---------------
  204. *stdout* is different and more command-dependent than logging. Commands like :ref:`borg_info`, :ref:`borg_create`
  205. and :ref:`borg_list` implement a ``--json`` option which turns their regular output into a single JSON object.
  206. Some commands, like :ref:`borg_list` and :ref:`borg_diff`, can produce *a lot* of JSON. Since many JSON implementations
  207. don't support a streaming mode of operation, which is pretty much required to deal with this amount of JSON, these
  208. commands implement a ``--json-lines`` option which generates output in the `JSON lines <http://jsonlines.org/>`_ format,
  209. which is simply a number of JSON objects separated by new lines.
  210. Dates are formatted according to ISO 8601 in local time. No explicit time zone is specified *at this time*
  211. (subject to change). The equivalent strftime format string is '%Y-%m-%dT%H:%M:%S.%f',
  212. e.g. ``2017-08-07T12:27:20.123456``.
  213. The root object of '--json' output will contain at least a *repository* key with an object containing:
  214. id
  215. The ID of the repository, normally 64 hex characters
  216. location
  217. Canonicalized repository path, thus this may be different from what is specified on the command line
  218. last_modified
  219. Date when the repository was last modified by the Borg client
  220. The *encryption* key, if present, contains:
  221. mode
  222. Textual encryption mode name (same as :ref:`borg_rcreate` ``--encryption`` names)
  223. keyfile
  224. Path to the local key file used for access. Depending on *mode* this key may be absent.
  225. The *cache* key, if present, contains:
  226. path
  227. Path to the local repository cache
  228. stats
  229. Object containing cache stats:
  230. total_chunks
  231. Number of chunks
  232. total_unique_chunks
  233. Number of unique chunks
  234. total_size
  235. Total uncompressed size of all chunks multiplied with their reference counts
  236. unique_size
  237. Uncompressed size of all chunks
  238. .. highlight: json
  239. Example *borg info* output::
  240. {
  241. "cache": {
  242. "path": "/home/user/.cache/borg/0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
  243. "stats": {
  244. "total_chunks": 511533,
  245. "total_size": 22635749792,
  246. "total_unique_chunks": 54892,
  247. "unique_size": 2449675468
  248. }
  249. },
  250. "encryption": {
  251. "mode": "repokey"
  252. },
  253. "repository": {
  254. "id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
  255. "last_modified": "2017-08-07T12:27:20.789123",
  256. "location": "/home/user/testrepo"
  257. },
  258. "security_dir": "/home/user/.config/borg/security/0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
  259. "archives": []
  260. }
  261. Archive formats
  262. +++++++++++++++
  263. :ref:`borg_info` uses an extended format for archives, which is more expensive to retrieve, while
  264. :ref:`borg_list` uses a simpler format that is faster to retrieve. Either return archives in an
  265. array under the *archives* key, while :ref:`borg_create` returns a single archive object under the
  266. *archive* key.
  267. Both formats contain a *name* key with the archive name, the *id* key with the hexadecimal archive ID,
  268. and the *start* key with the start timestamp.
  269. *borg info* and *borg create* further have:
  270. end
  271. End timestamp
  272. duration
  273. Duration in seconds between start and end in seconds (float)
  274. stats
  275. Archive statistics (freshly calculated, this is what makes "info" more expensive)
  276. original_size
  277. Size of files and metadata before compression
  278. compressed_size
  279. Size after compression
  280. deduplicated_size
  281. Deduplicated size (against the current repository, not when the archive was created)
  282. nfiles
  283. Number of regular files in the archive
  284. command_line
  285. Array of strings of the command line that created the archive
  286. The note about paths from above applies here as well.
  287. chunker_params
  288. The chunker parameters the archive has been created with.
  289. :ref:`borg_info` further has:
  290. hostname
  291. Hostname of the creating host
  292. username
  293. Name of the creating user
  294. comment
  295. Archive comment, if any
  296. Some keys/values are more expensive to compute than others (e.g. because it requires opening the archive,
  297. not just the manifest). To optimize for speed, `borg list repo` does not determine these values except
  298. when they are requested. The `--format` option is used for that (for normal mode as well as for `--json`
  299. mode), so, to have the comment included in the json output, you will need:
  300. ::
  301. borg list repo --format "{name}{comment}" --json`
  302. Example of a simple archive listing (``borg list --last 1 --json``)::
  303. {
  304. "archives": [
  305. {
  306. "id": "80cd07219ad725b3c5f665c1dcf119435c4dee1647a560ecac30f8d40221a46a",
  307. "name": "host-system-backup-2017-02-27",
  308. "start": "2017-08-07T12:27:20.789123"
  309. }
  310. ],
  311. "encryption": {
  312. "mode": "repokey"
  313. },
  314. "repository": {
  315. "id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
  316. "last_modified": "2017-08-07T12:27:20.789123",
  317. "location": "/home/user/repository"
  318. }
  319. }
  320. The same archive with more information (``borg info --last 1 --json``)::
  321. {
  322. "archives": [
  323. {
  324. "chunker_params": [
  325. "buzhash",
  326. 13,
  327. 23,
  328. 16,
  329. 4095
  330. ],
  331. "command_line": [
  332. "/home/user/.local/bin/borg",
  333. "create",
  334. "/home/user/repository",
  335. "..."
  336. ],
  337. "comment": "",
  338. "duration": 5.641542,
  339. "end": "2017-02-27T12:27:20.789123",
  340. "hostname": "host",
  341. "id": "80cd07219ad725b3c5f665c1dcf119435c4dee1647a560ecac30f8d40221a46a",
  342. "name": "host-system-backup-2017-02-27",
  343. "start": "2017-02-27T12:27:20.789123",
  344. "stats": {
  345. "compressed_size": 1880961894,
  346. "deduplicated_size": 2791,
  347. "nfiles": 53669,
  348. "original_size": 2400471280
  349. },
  350. "username": "user"
  351. }
  352. ],
  353. "cache": {
  354. "path": "/home/user/.cache/borg/0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
  355. "stats": {
  356. "total_chunks": 511533,
  357. "total_size": 22635749792,
  358. "total_unique_chunks": 54892,
  359. "unique_size": 2449675468
  360. }
  361. },
  362. "encryption": {
  363. "mode": "repokey"
  364. },
  365. "repository": {
  366. "id": "0cbe6166b46627fd26b97f8831e2ca97584280a46714ef84d2b668daf8271a23",
  367. "last_modified": "2017-08-07T12:27:20.789123",
  368. "location": "/home/user/repository"
  369. }
  370. }
  371. File listings
  372. +++++++++++++
  373. Each archive item (file, directory, ...) is described by one object in the :ref:`borg_list` output.
  374. Refer to the *borg list* documentation for the available keys and their meaning.
  375. Example (excerpt) of ``borg list --json-lines``::
  376. {"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}
  377. {"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}
  378. Archive Differencing
  379. ++++++++++++++++++++
  380. Each archive difference item (file contents, user/group/mode) output by :ref:`borg_diff` is represented by an *ItemDiff* object.
  381. The properties of an *ItemDiff* object are:
  382. path:
  383. The filename/path of the *Item* (file, directory, symlink).
  384. changes:
  385. A list of *Change* objects describing the changes made to the item in the two archives. For example,
  386. there will be two changes if the contents of a file are changed, and its ownership are changed.
  387. The *Change* object can contain a number of properties depending on the type of change that occurred.
  388. If a 'property' is not required for the type of change, it is not output.
  389. The possible properties of a *Change* object are:
  390. type:
  391. The **type** property is always present. It identifies the type of change and will be one of these values:
  392. - *modified* - file contents changed.
  393. - *added* - the file was added.
  394. - *removed* - the file was removed.
  395. - *added directory* - the directory was added.
  396. - *removed directory* - the directory was removed.
  397. - *added link* - the symlink was added.
  398. - *removed link* - the symlink was removed.
  399. - *changed link* - the symlink target was changed.
  400. - *mode* - the file/directory/link mode was changed. Note - this could indicate a change from a
  401. file/directory/link type to a different type (file/directory/link), such as -- a file is deleted and replaced
  402. with a directory of the same name.
  403. - *owner* - user and/or group ownership changed.
  404. size:
  405. If **type** == '*added*' or '*removed*', then **size** provides the size of the added or removed file.
  406. added:
  407. If **type** == '*modified*' and chunk ids can be compared, then **added** and **removed** indicate the amount
  408. of data 'added' and 'removed'. If chunk ids can not be compared, then **added** and **removed** properties are
  409. not provided and the only information available is that the file contents were modified.
  410. removed:
  411. See **added** property.
  412. old_mode:
  413. If **type** == '*mode*', then **old_mode** and **new_mode** provide the mode and permissions changes.
  414. new_mode:
  415. See **old_mode** property.
  416. old_user:
  417. If **type** == '*owner*', then **old_user**, **new_user**, **old_group** and **new_group** provide the user
  418. and group ownership changes.
  419. old_group:
  420. See **old_user** property.
  421. new_user:
  422. See **old_user** property.
  423. new_group:
  424. See **old_user** property.
  425. Example (excerpt) of ``borg diff --json-lines``::
  426. {"path": "file1", "changes": [{"path": "file1", "changes": [{"type": "modified", "added": 17, "removed": 5}, {"type": "mode", "old_mode": "-rw-r--r--", "new_mode": "-rwxr-xr-x"}]}]}
  427. {"path": "file2", "changes": [{"type": "modified", "added": 135, "removed": 252}]}
  428. {"path": "file4", "changes": [{"type": "added", "size": 0}]}
  429. {"path": "file3", "changes": [{"type": "removed", "size": 0}]}
  430. .. _msgid:
  431. Message IDs
  432. -----------
  433. Message IDs are strings that essentially give a log message or operation a name, without actually using the
  434. full text, since texts change more frequently. Message IDs are unambiguous and reduce the need to parse
  435. log messages.
  436. Assigned message IDs are:
  437. .. See scripts/errorlist.py; this is slightly edited.
  438. Errors
  439. Archive.AlreadyExists
  440. Archive {} already exists
  441. Archive.DoesNotExist
  442. Archive {} does not exist
  443. Archive.IncompatibleFilesystemEncodingError
  444. Failed to encode filename "{}" into file system encoding "{}". Consider configuring the LANG environment variable.
  445. Cache.CacheInitAbortedError
  446. Cache initialization aborted
  447. Cache.EncryptionMethodMismatch
  448. Repository encryption method changed since last access, refusing to continue
  449. Cache.RepositoryAccessAborted
  450. Repository access aborted
  451. Cache.RepositoryIDNotUnique
  452. Cache is newer than repository - do you have multiple, independently updated repos with same ID?
  453. Cache.RepositoryReplay
  454. Cache is newer than repository - this is either an attack or unsafe (multiple repos with same ID)
  455. Buffer.MemoryLimitExceeded
  456. Requested buffer size {} is above the limit of {}.
  457. ExtensionModuleError
  458. The Borg binary extension modules do not seem to be installed properly
  459. IntegrityError
  460. Data integrity error: {}
  461. NoManifestError
  462. Repository has no manifest.
  463. PlaceholderError
  464. Formatting Error: "{}".format({}): {}({})
  465. KeyfileInvalidError
  466. Invalid key file for repository {} found in {}.
  467. KeyfileMismatchError
  468. Mismatch between repository {} and key file {}.
  469. KeyfileNotFoundError
  470. No key file for repository {} found in {}.
  471. PassphraseWrong
  472. passphrase supplied in BORG_PASSPHRASE is incorrect
  473. PasswordRetriesExceeded
  474. exceeded the maximum password retries
  475. RepoKeyNotFoundError
  476. No key entry found in the config of repository {}.
  477. UnsupportedManifestError
  478. Unsupported manifest envelope. A newer version is required to access this repository.
  479. UnsupportedPayloadError
  480. Unsupported payload type {}. A newer version is required to access this repository.
  481. NotABorgKeyFile
  482. This file is not a borg key backup, aborting.
  483. RepoIdMismatch
  484. This key backup seems to be for a different backup repository, aborting.
  485. UnencryptedRepo
  486. Keymanagement not available for unencrypted repositories.
  487. UnknownKeyType
  488. Keytype {0} is unknown.
  489. LockError
  490. Failed to acquire the lock {}.
  491. LockErrorT
  492. Failed to acquire the lock {}.
  493. ConnectionClosed
  494. Connection closed by remote host
  495. InvalidRPCMethod
  496. RPC method {} is not valid
  497. PathNotAllowed
  498. Repository path not allowed
  499. RemoteRepository.RPCServerOutdated
  500. Borg server is too old for {}. Required version {}
  501. UnexpectedRPCDataFormatFromClient
  502. Borg {}: Got unexpected RPC data format from client.
  503. UnexpectedRPCDataFormatFromServer
  504. Got unexpected RPC data format from server:
  505. {}
  506. Repository.AlreadyExists
  507. Repository {} already exists.
  508. Repository.CheckNeeded
  509. Inconsistency detected. Please run "borg check {}".
  510. Repository.DoesNotExist
  511. Repository {} does not exist.
  512. Repository.InsufficientFreeSpaceError
  513. Insufficient free space to complete transaction (required: {}, available: {}).
  514. Repository.InvalidRepository
  515. {} is not a valid repository. Check repo config.
  516. Repository.AtticRepository
  517. Attic repository detected. Please run "borg upgrade {}".
  518. Repository.ObjectNotFound
  519. Object with key {} not found in repository {}.
  520. Operations
  521. - cache.begin_transaction
  522. - cache.download_chunks, appears with ``borg create --no-cache-sync``
  523. - cache.commit
  524. - cache.sync
  525. *info* is one string element, the name of the archive currently synced.
  526. - repository.compact_segments
  527. - repository.replay_segments
  528. - repository.check
  529. - check.verify_data
  530. - check.rebuild_manifest
  531. - extract
  532. *info* is one string element, the name of the path currently extracted.
  533. - extract.permissions
  534. - archive.delete
  535. - archive.calc_stats
  536. - prune
  537. - upgrade.convert_segments
  538. Prompts
  539. BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK
  540. For "Warning: Attempting to access a previously unknown unencrypted repository"
  541. BORG_RELOCATED_REPO_ACCESS_IS_OK
  542. For "Warning: The repository at location ... was previously located at ..."
  543. BORG_CHECK_I_KNOW_WHAT_I_AM_DOING
  544. For "This is a potentially dangerous function..." (check --repair)
  545. BORG_DELETE_I_KNOW_WHAT_I_AM_DOING
  546. For "You requested to DELETE the repository completely *including* all archives it contains:"