frontends.rst 25 KB

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