faq.rst 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  1. .. include:: global.rst.inc
  2. .. highlight:: none
  3. .. _faq:
  4. Frequently asked questions
  5. ==========================
  6. Usage & Limitations
  7. ###################
  8. What is the difference between a repo on an external hard drive vs. repo on a server?
  9. -------------------------------------------------------------------------------------
  10. If Borg is running in client/server mode, the client uses SSH as a transport to
  11. talk to the remote agent, which is another Borg process (Borg is installed on
  12. the server, too) started automatically by the client. The Borg server is doing
  13. storage-related low-level repo operations (get, put, commit, check, compact),
  14. while the Borg client does the high-level stuff: deduplication, encryption,
  15. compression, dealing with archives, backups, restores, etc., which reduces the
  16. amount of data that goes over the network.
  17. When Borg is writing to a repo on a locally mounted remote file system, e.g.
  18. SSHFS, the Borg client only can do file system operations and has no agent
  19. running on the remote side, so *every* operation needs to go over the network,
  20. which is slower.
  21. Can I back up from multiple servers into a single repository?
  22. -------------------------------------------------------------
  23. In order for the deduplication used by Borg to work, it
  24. needs to keep a local cache containing checksums of all file
  25. chunks already stored in the repository. This cache is stored in
  26. ``~/.cache/borg/``. If Borg detects that a repository has been
  27. modified since the local cache was updated it will need to rebuild
  28. the cache. This rebuild can be quite time consuming.
  29. So, yes it's possible. But it will be most efficient if a single
  30. repository is only modified from one place. Also keep in mind that
  31. Borg will keep an exclusive lock on the repository while creating
  32. or deleting archives, which may make *simultaneous* backups fail.
  33. Can I back up to multiple, swapped backup targets?
  34. --------------------------------------------------
  35. It is possible to swap your backup disks if each backup medium is assigned its
  36. own repository by creating a new one with :ref:`borg_rcreate`.
  37. Can I copy or synchronize my repo to another location?
  38. ------------------------------------------------------
  39. If you want to have redundant backup repositories (preferably at separate
  40. locations), the recommended way to do that is like this:
  41. - ``borg rcreate repo1 --encryption=X``
  42. - ``borg rcreate repo2 --encryption=X --other-repo=repo1``
  43. - maybe do a snapshot to have stable and same input data for both borg create.
  44. - client machine ---borg create---> repo1
  45. - client machine ---borg create---> repo2
  46. This will create distinct (different repo ID), but related repositories.
  47. Related means using the same chunker secret and the same id_key, thus producing
  48. the same chunks / the same chunk ids if the input data is the same.
  49. The 2 independent borg create invocations mean that there is no error propagation
  50. from repo1 to repo2 when done like that.
  51. An alternative way would be to use ``borg transfer`` to copy backup archives
  52. from repo1 to repo2. Likely a bit more efficient and the archives would be identical,
  53. but suffering from potential error propagation.
  54. Warning: using borg with multiple repositories with identical repository ID (like when
  55. creating 1:1 repository copies) is not supported and can lead to all sorts of issues,
  56. like e.g. cache coherency issues, malfunction, data corruption.
  57. "this is either an attack or unsafe" warning
  58. --------------------------------------------
  59. About the warning:
  60. Cache, or information obtained from the security directory is newer than
  61. repository - this is either an attack or unsafe (multiple repos with same ID)
  62. "unsafe": If not following the advice from the previous section, you can easily
  63. run into this by yourself by restoring an older copy of your repository.
  64. "attack": maybe an attacker has replaced your repo by an older copy, trying to
  65. trick you into AES counter reuse, trying to break your repo encryption.
  66. Borg users have also reported that fs issues (like hw issues / I/O errors causing
  67. the fs to become read-only) can cause this warning, see :issue:`7853`.
  68. If you decide to ignore this and accept unsafe operation for this repository,
  69. you could delete the manifest-timestamp and the local cache:
  70. ::
  71. borg config id # shows the REPO_ID
  72. rm ~/.config/borg/security/REPO_ID/manifest-timestamp
  73. borg rdelete --cache-only
  74. This is an unsafe and unsupported way to use borg, you have been warned.
  75. Which file types, attributes, etc. are *not* preserved?
  76. -------------------------------------------------------
  77. * UNIX domain sockets (because it does not make sense - they are
  78. meaningless without the running process that created them and the process
  79. needs to recreate them in any case). So, don't panic if your backup
  80. misses a UDS!
  81. * The precise on-disk (or rather: not-on-disk) representation of the holes
  82. in a sparse file.
  83. Archive creation has no special support for sparse files, holes are
  84. backed up as (deduplicated and compressed) runs of zero bytes.
  85. Archive extraction has optional support to extract all-zero chunks as
  86. holes in a sparse file.
  87. * Some filesystem specific attributes, like btrfs NOCOW, see :ref:`platforms`.
  88. Are there other known limitations?
  89. ----------------------------------
  90. - borg extract supports restoring only into an empty destination. After extraction,
  91. the destination will have exactly the contents of the extracted archive.
  92. If you extract into a non-empty destination, borg will (for example) not
  93. remove files which are in the destination, but not in the archive.
  94. See :issue:`4598` for a workaround and more details.
  95. .. _interrupted_backup:
  96. If a backup stops mid-way, does the already-backed-up data stay there?
  97. ----------------------------------------------------------------------
  98. Yes, the data transferred into the repo stays there - just avoid running
  99. ``borg compact`` before you completed the backup, because that would remove
  100. unused chunks.
  101. If a backup was interrupted, you normally do not need to do anything special,
  102. just invoke ``borg create`` as you always do. If the repository is still locked,
  103. you may need to run ``borg break-lock`` before the next backup. You may use the
  104. same archive name as in previous attempt or a different one (e.g. if you always
  105. include the current datetime), it does not matter.
  106. Borg always does full single-pass backups, so it will start again
  107. from the beginning - but it will be much faster, because some of the data was
  108. already stored into the repo, so it does not need to get transmitted and stored
  109. again.
  110. How can I back up huge file(s) over a unstable connection?
  111. ----------------------------------------------------------
  112. Yes. For more details, see :ref:`interrupted_backup`.
  113. How can I restore huge file(s) over an unstable connection?
  114. -----------------------------------------------------------
  115. Try using ``borg mount`` and ``rsync`` (or a similar tool that supports
  116. resuming a partial file copy from what's already copied).
  117. How can I switch append-only mode on and off?
  118. -----------------------------------------------------------------------------------------------------------------------------------
  119. You could do that (via borg config REPO append_only 0/1), but using different
  120. ssh keys and different entries in ``authorized_keys`` is much easier and also
  121. maybe has less potential of things going wrong somehow.
  122. My machine goes to sleep causing `Broken pipe`
  123. ----------------------------------------------
  124. While backing up your data over the network, your machine should not go to sleep.
  125. On macOS you can use `caffeinate` to avoid that.
  126. How can I compare contents of an archive to my local filesystem?
  127. -----------------------------------------------------------------
  128. You can instruct ``export-tar`` to send a tar stream to the stdout, and
  129. then use ``tar`` to perform the comparison:
  130. ::
  131. borg export-tar archive-name - | tar --compare -f - -C /path/to/compare/to
  132. Can Borg add redundancy to the backup data to deal with hardware malfunction?
  133. -----------------------------------------------------------------------------
  134. No, it can't. While that at first sounds like a good idea to defend against
  135. some defect HDD sectors or SSD flash blocks, dealing with this in a
  136. reliable way needs a lot of low-level storage layout information and
  137. control which we do not have (and also can't get, even if we wanted).
  138. So, if you need that, consider RAID or a filesystem that offers redundant
  139. storage or just make backups to different locations / different hardware.
  140. See also :issue:`225`.
  141. Can Borg verify data integrity of a backup archive?
  142. ---------------------------------------------------
  143. Yes, if you want to detect accidental data damage (like bit rot), use the
  144. ``check`` operation. It will notice corruption using CRCs and hashes.
  145. If you want to be able to detect malicious tampering also, use an encrypted
  146. repo. It will then be able to check using CRCs and HMACs.
  147. Can I use Borg on SMR hard drives?
  148. ----------------------------------
  149. SMR (shingled magnetic recording) hard drives are very different from
  150. regular hard drives. Applications have to behave in certain ways or
  151. performance will be heavily degraded.
  152. Borg ships with default settings suitable for SMR drives,
  153. and has been successfully tested on *Seagate Archive v2* drives
  154. using the ext4 file system.
  155. Some Linux kernel versions between 3.19 and 4.5 had various bugs
  156. handling device-managed SMR drives, leading to IO errors, unresponsive
  157. drives and unreliable operation in general.
  158. For more details, refer to :issue:`2252`.
  159. .. _faq-integrityerror:
  160. I get an IntegrityError or similar - what now?
  161. ----------------------------------------------
  162. A single error does not necessarily indicate bad hardware or a Borg
  163. bug. All hardware exhibits a bit error rate (BER). Hard drives are typically
  164. specified as exhibiting fewer than one error every 12 to 120 TB
  165. (one bit error in 10e14 to 10e15 bits). The specification is often called
  166. *unrecoverable read error rate* (URE rate).
  167. Apart from these very rare errors there are two main causes of errors:
  168. (i) Defective hardware: described below.
  169. (ii) Bugs in software (Borg, operating system, libraries):
  170. Ensure software is up to date.
  171. Check whether the issue is caused by any fixed bugs described in
  172. :ref:`important_notes`.
  173. .. rubric:: Finding defective hardware
  174. .. note::
  175. Hardware diagnostics are operating system dependent and do not
  176. apply universally. The commands shown apply for popular Unix-like
  177. systems. Refer to your operating system's manual.
  178. Checking hard drives
  179. Find the drive containing the repository and use *findmnt*, *mount* or *lsblk*
  180. to learn the device path (typically */dev/...*) of the drive.
  181. Then, smartmontools can retrieve self-diagnostics of the drive in question::
  182. # smartctl -a /dev/sdSomething
  183. The *Offline_Uncorrectable*, *Current_Pending_Sector* and *Reported_Uncorrect*
  184. attributes indicate data corruption. A high *UDMA_CRC_Error_Count* usually
  185. indicates a bad cable.
  186. I/O errors logged by the system (refer to the system journal or
  187. dmesg) can point to issues as well. I/O errors only affecting the
  188. file system easily go unnoticed, since they are not reported to
  189. applications (e.g. Borg), while these errors can still corrupt data.
  190. Drives can corrupt some sectors in one event, while remaining
  191. reliable otherwise. Conversely, drives can fail completely with no
  192. advance warning. If in doubt, copy all data from the drive in
  193. question to another drive -- just in case it fails completely.
  194. If any of these are suspicious, a self-test is recommended::
  195. # smartctl -t long /dev/sdSomething
  196. Running ``fsck`` if not done already might yield further insights.
  197. Checking memory
  198. Intermittent issues, such as ``borg check`` finding errors
  199. inconsistently between runs, are frequently caused by bad memory.
  200. Run memtest86+ (or an equivalent memory tester) to verify that
  201. the memory subsystem is operating correctly.
  202. Checking processors
  203. Processors rarely cause errors. If they do, they are usually overclocked
  204. or otherwise operated outside their specifications. We do not recommend to
  205. operate hardware outside its specifications for productive use.
  206. Tools to verify correct processor operation include Prime95 (mprime), linpack,
  207. and the `Intel Processor Diagnostic Tool
  208. <https://downloadcenter.intel.com/download/19792/Intel-Processor-Diagnostic-Tool>`_
  209. (applies only to Intel processors).
  210. .. rubric:: Repairing a damaged repository
  211. With any defective hardware found and replaced, the damage done to the repository
  212. needs to be ascertained and fixed.
  213. :ref:`borg_check` provides diagnostics and ``--repair`` options for repositories with
  214. issues. We recommend to first run without ``--repair`` to assess the situation.
  215. If the found issues and proposed repairs seem right, re-run "check" with ``--repair`` enabled.
  216. How probable is it to get a hash collision problem?
  217. ---------------------------------------------------
  218. If you noticed, there are some issues (:issue:`170` (**warning: hell**) and :issue:`4884`)
  219. about the probability of a chunk having the same hash as another chunk, making the file
  220. corrupted because it grabbed the wrong chunk. This is called the `Birthday Problem
  221. <https://en.wikipedia.org/wiki/Birthday_problem>`_.
  222. There is a lot of probability in here so, I can give you my interpretation of
  223. such math but it's honestly better that you read it yourself and grab your own
  224. resolution from that.
  225. Assuming that all your chunks have a size of :math:`2^{21}` bytes (approximately 2.1 MB)
  226. and we have a "perfect" hash algorithm, we can think that the probability of collision
  227. would be of :math:`p^2/2^{n+1}` then, using SHA-256 (:math:`n=256`) and for example
  228. we have 1000 million chunks (:math:`p=10^9`) (1000 million chunks would be about 2100TB).
  229. The probability would be around 0.0000000000000000000000000000000000000000000000000000000000043.
  230. A mass-murderer space rock happens about once every 30 million years on average.
  231. This leads to a probability of such an event occurring in the next second to about :math:`10^{-15}`.
  232. That's **45** orders of magnitude more probable than the SHA-256 collision. Briefly stated,
  233. if you find SHA-256 collisions scary then your priorities are wrong. This example was grabbed from
  234. `this SO answer <https://stackoverflow.com/a/4014407/13359375>`_, it's great honestly.
  235. Still, the real question is whether Borg tries not to make this happen?
  236. Well... previously it did not check anything until there was a feature added which saves the size
  237. of the chunks too, so the size of the chunks is compared to the size that you got with the
  238. hash and if the check says there is a mismatch it will raise an exception instead of corrupting
  239. the file. This doesn't save us from everything but reduces the chances of corruption.
  240. There are other ways of trying to escape this but it would affect performance so much that
  241. it wouldn't be worth it and it would contradict Borg's design, so if you don't want this to
  242. happen, simply don't use Borg.
  243. Why is the time elapsed in the archive stats different from wall clock time?
  244. ----------------------------------------------------------------------------
  245. Borg needs to write the time elapsed into the archive metadata before finalizing
  246. the archive and committing the repo & cache.
  247. This means when Borg is run with e.g. the ``time`` command, the duration shown
  248. in the archive stats may be shorter than the full time the command runs for.
  249. How do I configure different prune policies for different directories?
  250. ----------------------------------------------------------------------
  251. Say you want to prune ``/var/log`` faster than the rest of
  252. ``/``. How do we implement that? The answer is to back up to different
  253. archive *names* and then implement different prune policies for
  254. different prefixes. For example, you could have a script that does::
  255. borg create --exclude var/log main-$(date +%Y-%m-%d) /
  256. borg create logs-$(date +%Y-%m-%d) /var/log
  257. Then you would have two different prune calls with different policies::
  258. borg prune --verbose --list -d 30 -a 'sh:main-*'
  259. borg prune --verbose --list -d 7 -a 'sh:logs-*'
  260. This will keep 7 days of logs and 30 days of everything else.
  261. How do I remove files from an existing backup?
  262. ----------------------------------------------
  263. A file is only removed from a BorgBackup repository if all archives that contain
  264. the file are deleted and the corresponding data chunks are removed from the
  265. repository. There are two ways how to remove files from a repository.
  266. 1. Use :ref:`borg_delete` to remove all archives that contain the files. This
  267. will of course delete everything in the archive, not only some files.
  268. 2. If you really want to remove only some specific files, you can run the
  269. :ref:`borg_recreate` command to rewrite all archives with a different
  270. ``--exclude`` pattern. See the examples in the manpage for more information.
  271. Finally, run :ref:`borg_compact` with the ``--threshold 0`` option to delete the
  272. data chunks from the repository.
  273. Can I safely change the compression level or algorithm?
  274. --------------------------------------------------------
  275. The compression level and algorithm don't affect deduplication. Chunk ID hashes
  276. are calculated *before* compression. New compression settings
  277. will only be applied to new chunks, not existing chunks. So it's safe
  278. to change them.
  279. Security
  280. ########
  281. .. _home_config_borg:
  282. How important is the $HOME/.config/borg directory?
  283. --------------------------------------------------
  284. The Borg config directory has content that you should take care of:
  285. ``keys`` subdirectory
  286. All your borg keyfile keys are stored in this directory. Please note that
  287. borg repokey keys are stored inside the repository. You MUST make sure to have an
  288. independent backup of these keyfiles, otherwise you cannot access your backups anymore if you lose
  289. them. You also MUST keep these files secret; everyone who gains access to your repository and has
  290. the corresponding keyfile (and the key passphrase) can extract it.
  291. Make sure that only you have access to the Borg config directory.
  292. .. _home_data_borg:
  293. How important is the $HOME/.local/share/borg directory?
  294. -------------------------------------------------------
  295. The Borg data directory has content that you should take care of:
  296. ``security`` subdirectory
  297. Each directory here represents one Borg repository by its ID and contains the last known status.
  298. If a repository's status is different from this information at the beginning of BorgBackup
  299. operation, Borg outputs warning messages and asks for confirmation, so make sure you do not lose
  300. or manipulate these files. However, apart from those warnings, a loss of these files can be
  301. recovered.
  302. Make sure that only you have access to the Borg data directory.
  303. .. _cache_security:
  304. Do I need to take security precautions regarding the cache?
  305. -----------------------------------------------------------
  306. The cache contains a lot of metadata information about the files in
  307. your repositories and it is not encrypted.
  308. However, the assumption is that the cache is being stored on the very
  309. same system which also contains the original files which are being
  310. backed up. So someone with access to the cache files would also have
  311. access the original files anyway.
  312. The Internals section contains more details about :ref:`cache`. If you ever need to move the cache
  313. to a different location, this can be achieved by using the appropriate :ref:`env_vars`.
  314. How can I specify the encryption passphrase programmatically?
  315. -------------------------------------------------------------
  316. There are several ways to specify a passphrase without human intervention:
  317. Setting ``BORG_PASSPHRASE``
  318. The passphrase can be specified using the ``BORG_PASSPHRASE`` environment variable.
  319. This is often the simplest option, but can be insecure if the script that sets it
  320. is world-readable.
  321. .. _password_env:
  322. .. note:: Be careful how you set the environment; using the ``env``
  323. command, a ``system()`` call or using inline shell scripts
  324. (e.g. ``BORG_PASSPHRASE=hunter2 borg ...``)
  325. might expose the credentials in the process list directly
  326. and they will be readable to all users on a system. Using
  327. ``export`` in a shell script file should be safe, however, as
  328. the environment of a process is `accessible only to that
  329. user
  330. <https://security.stackexchange.com/questions/14000/environment-variable-accessibility-in-linux/14009#14009>`_.
  331. Using ``BORG_PASSCOMMAND`` with a file of proper permissions
  332. Another option is to create a file with a password in it in your home
  333. directory and use permissions to keep anyone else from reading it. For
  334. example, first create a key::
  335. (umask 0077; head -c 32 /dev/urandom | base64 -w 0 > ~/.borg-passphrase)
  336. Then in an automated script one can put::
  337. export BORG_PASSCOMMAND="cat $HOME/.borg-passphrase"
  338. and Borg will automatically use that passphrase.
  339. Using keyfile-based encryption with a blank passphrase
  340. It is possible to encrypt your repository in ``keyfile`` mode instead of the default
  341. ``repokey`` mode and use a blank passphrase for the key file (simply press Enter twice
  342. when ``borg rcreate`` asks for the password). See :ref:`encrypted_repos`
  343. for more details.
  344. Using ``BORG_PASSCOMMAND`` with macOS Keychain
  345. macOS has a native manager for secrets (such as passphrases) which is safer
  346. than just using a file as it is encrypted at rest and unlocked manually
  347. (fortunately, the login keyring automatically unlocks when you log in). With
  348. the built-in ``security`` command, you can access it from the command line,
  349. making it useful for ``BORG_PASSCOMMAND``.
  350. First generate a passphrase and use ``security`` to save it to your login
  351. (default) keychain::
  352. security add-generic-password -D secret -U -a $USER -s borg-passphrase -w $(head -c 32 /dev/urandom | base64 -w 0)
  353. In your backup script retrieve it in the ``BORG_PASSCOMMAND``::
  354. export BORG_PASSCOMMAND="security find-generic-password -a $USER -s borg-passphrase -w"
  355. Using ``BORG_PASSCOMMAND`` with GNOME Keyring
  356. GNOME also has a keyring daemon that can be used to store a Borg passphrase.
  357. First ensure ``libsecret-tools``, ``gnome-keyring`` and ``libpam-gnome-keyring``
  358. are installed. If ``libpam-gnome-keyring`` wasn't already installed, ensure it
  359. runs on login::
  360. sudo sh -c "echo session optional pam_gnome_keyring.so auto_start >> /etc/pam.d/login"
  361. sudo sh -c "echo password optional pam_gnome_keyring.so >> /etc/pam.d/passwd"
  362. # you may need to relogin afterwards to activate the login keyring
  363. Then add a secret to the login keyring::
  364. head -c 32 /dev/urandom | base64 -w 0 | secret-tool store borg-repository repo-name --label="Borg Passphrase"
  365. If a dialog box pops up prompting you to pick a password for a new keychain, use your
  366. login password. If there is a checkbox for automatically unlocking on login, check it
  367. to allow backups without any user intervention whatsoever.
  368. Once the secret is saved, retrieve it in a backup script using ``BORG_PASSCOMMAND``::
  369. export BORG_PASSCOMMAND="secret-tool lookup borg-repository repo-name"
  370. .. note:: For this to unlock the keychain automatically it must be run
  371. in the ``dbus`` session of an unlocked terminal; for example, running a backup
  372. script as a ``cron`` job might not work unless you also ``export DISPLAY=:0``
  373. so ``secret-tool`` can pick up your open session. `It gets even more complicated`__
  374. when you are running the tool as a different user (e.g. running a backup as root
  375. with the password stored in the user keyring).
  376. __ https://github.com/borgbackup/borg/pull/2837#discussion_r127641330
  377. Using ``BORG_PASSCOMMAND`` with KWallet
  378. KDE also has a keychain feature in the form of KWallet. The command-line tool
  379. ``kwalletcli`` can be used to store and retrieve secrets. Ensure ``kwalletcli``
  380. is installed, generate a passphrase, and store it in your "wallet"::
  381. head -c 32 /dev/urandom | base64 -w 0 | kwalletcli -Pe borg-passphrase -f Passwords
  382. Once the secret is saved, retrieve it in a backup script using ``BORG_PASSCOMMAND``::
  383. export BORG_PASSCOMMAND="kwalletcli -e borg-passphrase -f Passwords"
  384. When backing up to remote encrypted repos, is encryption done locally?
  385. ----------------------------------------------------------------------
  386. Yes, file and directory metadata and data is locally encrypted, before
  387. leaving the local machine. We do not mean the transport layer encryption
  388. by that, but the data/metadata itself. Transport layer encryption (e.g.
  389. when ssh is used as a transport) applies additionally.
  390. When backing up to remote servers, do I have to trust the remote server?
  391. ------------------------------------------------------------------------
  392. Yes and No.
  393. No, as far as data confidentiality is concerned - if you use encryption,
  394. all your files/dirs data and metadata are stored in their encrypted form
  395. into the repository.
  396. Yes, as an attacker with access to the remote server could delete (or
  397. otherwise make unavailable) all your backups.
  398. How can I protect against a hacked backup client?
  399. -------------------------------------------------
  400. Assume you back up your backup client machine C to the backup server S and
  401. C gets hacked. In a simple push setup, the attacker could then use borg on
  402. C to delete all backups residing on S.
  403. These are your options to protect against that:
  404. - Do not allow to delete data permanently from the repo, see :ref:`append_only_mode`.
  405. - Use a pull-mode setup using ``ssh -R``, see :ref:`pull_backup` for more information.
  406. - Mount C's filesystem on another machine and then create a backup of it.
  407. - Do not give C filesystem-level access to S.
  408. See :ref:`hosting_repositories` for a detailed protection guide.
  409. How can I protect against a hacked backup server?
  410. -------------------------------------------------
  411. Just in case you got the impression that pull-mode backups are way more safe
  412. than push-mode, you also need to consider the case that your backup server S
  413. gets hacked. In case S has access to a lot of clients C, that might bring you
  414. into even bigger trouble than a hacked backup client in the previous FAQ entry.
  415. These are your options to protect against that:
  416. - Use the standard push-mode setup (see also previous FAQ entry).
  417. - Mount (the repo part of) S's filesystem on C.
  418. - Do not give S file-system level access to C.
  419. - Have your backup server at a well protected place (maybe not reachable from
  420. the internet), configure it safely, apply security updates, monitor it, ...
  421. How can I protect against theft, sabotage, lightning, fire, ...?
  422. ----------------------------------------------------------------
  423. In general: if your only backup medium is nearby the backupped machine and
  424. always connected, you can easily get into trouble: they likely share the same
  425. fate if something goes really wrong.
  426. Thus:
  427. - have multiple backup media
  428. - have media disconnected from network, power, computer
  429. - have media at another place
  430. - have a relatively recent backup on your media
  431. How do I report a security issue with Borg?
  432. -------------------------------------------
  433. Send a private email to the :ref:`security contact <security-contact>`
  434. if you think you have discovered a security issue.
  435. Please disclose security issues responsibly.
  436. Common issues
  437. #############
  438. /path/to/repo is not a valid repository. Check repo config.
  439. -----------------------------------------------------------
  440. There can be many causes of this error. E.g. you have incorrectly specified the repository path.
  441. You will also get this error if you try to access a repository with a key that uses the argon2 key algorithm using an old version of borg.
  442. We recommend upgrading to the latest stable version and trying again. We are sorry. We should have thought about forward
  443. compatibility and implemented a more helpful error message.
  444. Why does Borg extract hang after some time?
  445. -------------------------------------------
  446. When I do a ``borg extract``, after a while all activity stops, no cpu usage,
  447. no downloads.
  448. This may happen when the SSH connection is stuck on server side. You can
  449. configure SSH on client side to prevent this by sending keep-alive requests,
  450. for example in ~/.ssh/config:
  451. ::
  452. Host borg.example.com
  453. # Client kills connection after 3*30 seconds without server response:
  454. ServerAliveInterval 30
  455. ServerAliveCountMax 3
  456. You can also do the opposite and configure SSH on server side in
  457. /etc/ssh/sshd_config, to make the server send keep-alive requests to the client:
  458. ::
  459. # Server kills connection after 3*30 seconds without client response:
  460. ClientAliveInterval 30
  461. ClientAliveCountMax 3
  462. How can I deal with my very unstable SSH connection?
  463. ----------------------------------------------------
  464. If you have issues with lost connections during long-running borg commands, you
  465. could try to work around:
  466. - Make partial extracts like ``borg extract PATTERN`` to do multiple
  467. smaller extraction runs that complete before your connection has issues.
  468. - Try using ``borg mount MOUNTPOINT`` and ``rsync -avH`` from
  469. ``MOUNTPOINT`` to your desired extraction directory. If the connection breaks
  470. down, just repeat that over and over again until rsync does not find anything
  471. to do any more. Due to the way borg mount works, this might be less efficient
  472. than borg extract for bigger volumes of data.
  473. Why do I get "connection closed by remote" after a while?
  474. ---------------------------------------------------------
  475. When doing a backup to a remote server (using a ssh: repo URL), it sometimes
  476. stops after a while (some minutes, hours, ... - not immediately) with
  477. "connection closed by remote" error message. Why?
  478. That's a good question and we are trying to find a good answer in :issue:`636`.
  479. Why am I seeing idle borg serve processes on the repo server?
  480. -------------------------------------------------------------
  481. Maybe the ssh connection between client and server broke down and that was not
  482. yet noticed on the server. Try these settings:
  483. ::
  484. # /etc/ssh/sshd_config on borg repo server - kill connection to client
  485. # after ClientAliveCountMax * ClientAliveInterval seconds with no response
  486. ClientAliveInterval 20
  487. ClientAliveCountMax 3
  488. If you have multiple borg create ... ; borg create ... commands in a already
  489. serialized way in a single script, you need to give them ``--lock-wait N`` (with N
  490. being a bit more than the time the server needs to terminate broken down
  491. connections and release the lock).
  492. Can I back up my root partition (/) with Borg?
  493. ----------------------------------------------
  494. Backing up your entire root partition works just fine, but remember to
  495. exclude directories that make no sense to back up, such as /dev, /proc,
  496. /sys, /tmp and /run, and to use ``--one-file-system`` if you only want to
  497. back up the root partition (and not any mounted devices e.g.).
  498. If it crashes with a UnicodeError, what can I do?
  499. -------------------------------------------------
  500. Check if your encoding is set correctly. For most POSIX-like systems, try::
  501. export LANG=en_US.UTF-8 # or similar, important is correct charset
  502. If that does not help:
  503. - check for typos, check if you really used ``export``.
  504. - check if you have set ``LC_ALL`` - if so, try not setting it.
  505. - check if you generated the respective locale via ``locale-gen``.
  506. I can't extract non-ascii filenames by giving them on the commandline!?
  507. -----------------------------------------------------------------------
  508. This might be due to different ways to represent some characters in unicode
  509. or due to other non-ascii encoding issues.
  510. If you run into that, try this:
  511. - avoid the non-ascii characters on the commandline by e.g. extracting
  512. the parent directory (or even everything)
  513. - mount the repo using FUSE and use some file manager
  514. .. _expected_performance:
  515. What's the expected backup performance?
  516. ---------------------------------------
  517. Compared to simply copying files (e.g. with ``rsync``), Borg has more work to do.
  518. This can make creation of the first archive slower, but saves time
  519. and disk space on subsequent runs. Here what Borg does when you run ``borg create``:
  520. - Borg chunks the file (using the relatively expensive buzhash algorithm)
  521. - It then computes the "id" of the chunk (hmac-sha256 (often slow, except
  522. if your CPU has sha256 acceleration) or blake2b (fast, in software))
  523. - Then it checks whether this chunk is already in the repo (local hashtable lookup,
  524. fast). If so, the processing of the chunk is completed here. Otherwise it needs to
  525. process the chunk:
  526. - Compresses (the default lz4 is super fast)
  527. - Encrypts and authenticates (AES-OCB, usually fast if your CPU has AES acceleration as usual
  528. since about 10y, or chacha20-poly1305, fast pure-software crypto)
  529. - Transmits to repo. If the repo is remote, this usually involves an SSH connection
  530. (does its own encryption / authentication).
  531. - Stores the chunk into a key/value store (the key is the chunk id, the value
  532. is the data). While doing that, it computes CRC32 / XXH64 of the data (repo low-level
  533. checksum, used by borg check --repository) and also updates the repo index
  534. (another hashtable).
  535. Subsequent backups are usually very fast if most files are unchanged and only
  536. a few are new or modified. The high performance on unchanged files primarily depends
  537. only on a few factors (like FS recursion + metadata reading performance and the
  538. files cache working as expected) and much less on other factors.
  539. E.g., for this setup:
  540. - server grade machine (4C/8T 2013 Xeon, 64GB RAM, 2x good 7200RPM disks)
  541. - local zfs filesystem (mirrored) containing the backup source data
  542. - repository is remote (does not matter much for unchanged files)
  543. - backup job runs while machine is otherwise idle
  544. The observed performance is that Borg can process about
  545. **1 million unchanged files (and a few small changed ones) in 4 minutes!**
  546. If you are seeing much less than that in similar circumstances, read the next
  547. few FAQ entries below.
  548. .. _slow_backup:
  549. Why is my backup so slow?
  550. --------------------------
  551. If you feel your Borg backup is too slow somehow, here is what you can do:
  552. - Make sure Borg has enough RAM (depends on how big your repo is / how many
  553. files you have)
  554. - Use one of the blake2 modes for --encryption except if you positively know
  555. your CPU (and openssl) accelerates sha256 (then stay with hmac-sha256).
  556. - Don't use any expensive compression. The default is lz4 and super fast.
  557. Uncompressed is often slower than lz4.
  558. - Just wait. You can also interrupt it and start it again as often as you like,
  559. it will converge against a valid "completed" state. It is starting
  560. from the beginning each time, but it is still faster then as it does not store
  561. data into the repo which it already has there.
  562. - If you don’t need additional file attributes, you can disable them with ``--noflags``,
  563. ``--noacls``, ``--noxattrs``. This can lead to noticeable performance improvements
  564. when your backup consists of many small files.
  565. To see what files have changed and take more time processing, you can also add
  566. ``--list --filter=AME --stats`` to your ``borg create`` call to produce more log output,
  567. including a file list (with file status characters) and also some statistics at
  568. the end of the backup.
  569. Then you do the backup and look at the log output:
  570. - stats: Do you really have little changes or are there more changes than you thought?
  571. In the stats you can see the overall volume of changed data, which needed to be
  572. added to the repo. If that is a lot, that can be the reason why it is slow.
  573. - ``A`` status ("added") in the file list:
  574. If you see that often, you have a lot of new files (files that Borg did not find
  575. in the files cache). If you think there is something wrong with that (the file was there
  576. already in the previous backup), please read the FAQ entries below.
  577. - ``M`` status ("modified") in the file list:
  578. If you see that often, Borg thinks that a lot of your files might be modified
  579. (Borg found them in the files cache, but the metadata read from the filesystem did
  580. not match the metadata stored in the files cache).
  581. In such a case, Borg will need to process the files' contents completely, which is
  582. much slower than processing unmodified files (Borg does not read their contents!).
  583. The metadata values used in this comparison are determined by the ``--files-cache`` option
  584. and could be e.g. size, ctime and inode number (see the ``borg create`` docs for more
  585. details and potential issues).
  586. You can use the ``stat`` command on files to look at fs metadata manually to debug if
  587. there is any unexpected change triggering the ``M`` status.
  588. Also, the ``--debug-topic=files_cache`` option of ``borg create`` provides a lot of debug
  589. output helping to analyse why the files cache does not give its expected high performance.
  590. When borg runs inside a virtual machine, there are some more things to look at:
  591. Some hypervisors (e.g. kvm on proxmox) give some broadly compatible CPU type to the
  592. VM (usually to ease migration between VM hosts of potentially different hardware CPUs).
  593. It is broadly compatible because they leave away modern CPU features that could be
  594. not present in older or other CPUs, e.g. hardware acceleration for AES crypto, for
  595. sha2 hashes, for (P)CLMUL(QDQ) computations useful for crc32.
  596. So, basically you pay for compatibility with bad performance. If you prefer better
  597. performance, you should try to expose the host CPU's misc. hw acceleration features
  598. to the VM which runs borg.
  599. On Linux, check ``/proc/cpuinfo`` for the CPU flags inside the VM.
  600. For kvm check the docs about "Host model" and "Host passthrough".
  601. See also the next few FAQ entries for more details.
  602. .. _a_status_oddity:
  603. I am seeing 'A' (added) status for an unchanged file!?
  604. ------------------------------------------------------
  605. The files cache is used to determine whether Borg already
  606. "knows" / has backed up a file and if so, to skip the file from
  607. chunking. It intentionally *excludes* files that have a timestamp
  608. which is the same as the newest timestamp in the created archive.
  609. So, if you see an 'A' status for unchanged file(s), they are likely the files
  610. with the most recent timestamp in that archive.
  611. This is expected: it is to avoid data loss with files that are backed up from
  612. a snapshot and that are immediately changed after the snapshot (but within
  613. timestamp granularity time, so the timestamp would not change). Without the code that
  614. removes these files from the files cache, the change that happened right after
  615. the snapshot would not be contained in the next backup as Borg would
  616. think the file is unchanged.
  617. This does not affect deduplication, the file will be chunked, but as the chunks
  618. will often be the same and already stored in the repo (except in the above
  619. mentioned rare condition), it will just re-use them as usual and not store new
  620. data chunks.
  621. If you want to avoid unnecessary chunking, just create or touch a small or
  622. empty file in your backup source file set (so that one has the latest timestamp,
  623. not your 50GB VM disk image) and, if you do snapshots, do the snapshot after
  624. that.
  625. Since only the files cache is used in the display of files status,
  626. those files are reported as being added when, really, chunks are
  627. already used.
  628. By default, ctime (change time) is used for the timestamps to have a rather
  629. safe change detection (see also the --files-cache option).
  630. Furthermore, pathnames recorded in files cache are always absolute, even if you
  631. specify source directories with relative pathname. If relative pathnames are
  632. stable, but absolute are not (for example if you mount a filesystem without
  633. stable mount points for each backup or if you are running the backup from a
  634. filesystem snapshot whose name is not stable), borg will assume that files are
  635. different and will report them as 'added', even though no new chunks will be
  636. actually recorded for them. To avoid this, you could bind mount your source
  637. directory in a directory with the stable path.
  638. .. _always_chunking:
  639. It always chunks all my files, even unchanged ones!
  640. ---------------------------------------------------
  641. Borg maintains a files cache where it remembers the timestamp, size and
  642. inode of files. When Borg does a new backup and starts processing a
  643. file, it first looks whether the file has changed (compared to the values
  644. stored in the files cache). If the values are the same, the file is assumed
  645. unchanged and thus its contents won't get chunked (again).
  646. Borg can't keep an infinite history of files of course, thus entries
  647. in the files cache have a "maximum time to live" which is set via the
  648. environment variable BORG_FILES_CACHE_TTL (and defaults to 20).
  649. Every time you do a backup (on the same machine, using the same user), the
  650. cache entries' ttl values of files that were not "seen" are incremented by 1
  651. and if they reach BORG_FILES_CACHE_TTL, the entry is removed from the cache.
  652. So, for example, if you do daily backups of 26 different data sets A, B,
  653. C, ..., Z on one machine (using the default TTL), the files from A will be
  654. already forgotten when you repeat the same backups on the next day and it
  655. will be slow because it would chunk all the files each time. If you set
  656. BORG_FILES_CACHE_TTL to at least 26 (or maybe even a small multiple of that),
  657. it would be much faster.
  658. Besides using a higher BORG_FILES_CACHE_TTL (which also increases memory usage),
  659. there is also BORG_FILES_CACHE_SUFFIX which can be used to have separate (smaller)
  660. files caches for each backup set instead of the default one (big) unified files cache.
  661. Another possible reason is that files don't always have the same path, for
  662. example if you mount a filesystem without stable mount points for each backup
  663. or if you are running the backup from a filesystem snapshot whose name is not
  664. stable. If the directory where you mount a filesystem is different every time,
  665. Borg assumes they are different files. This is true even if you back up these
  666. files with relative pathnames - borg uses full pathnames in files cache regardless.
  667. It is possible for some filesystems, such as ``mergerfs`` or network filesystems,
  668. to return inconsistent inode numbers across runs, causing borg to consider them changed.
  669. A workaround is to set the option ``--files-cache=ctime,size`` to exclude the inode
  670. number comparison from the files cache check so that files with different inode
  671. numbers won't be treated as modified.
  672. Is there a way to limit bandwidth with Borg?
  673. --------------------------------------------
  674. To limit upload (i.e. :ref:`borg_create`) bandwidth, use the
  675. ``--remote-ratelimit`` option.
  676. There is no built-in way to limit *download*
  677. (i.e. :ref:`borg_extract`) bandwidth, but limiting download bandwidth
  678. can be accomplished with pipeviewer_:
  679. Create a wrapper script: /usr/local/bin/pv-wrapper
  680. ::
  681. #!/bin/sh
  682. ## -q, --quiet do not output any transfer information at all
  683. ## -L, --rate-limit RATE limit transfer to RATE bytes per second
  684. RATE=307200
  685. pv -q -L $RATE | "$@"
  686. Add BORG_RSH environment variable to use pipeviewer wrapper script with ssh.
  687. ::
  688. export BORG_RSH='/usr/local/bin/pv-wrapper ssh'
  689. Now Borg will be bandwidth limited. The nice thing about ``pv`` is that you can
  690. change rate-limit on the fly:
  691. ::
  692. pv -R $(pidof pv) -L 102400
  693. .. _pipeviewer: http://www.ivarch.com/programs/pv.shtml
  694. How can I avoid unwanted base directories getting stored into archives?
  695. -----------------------------------------------------------------------
  696. Possible use cases:
  697. - Another file system is mounted and you want to back it up with original paths.
  698. - You have created a BTRFS snapshot in a ``/.snapshots`` directory for backup.
  699. To achieve this, run ``borg create`` within the mountpoint/snapshot directory:
  700. ::
  701. # Example: Some file system mounted in /mnt/rootfs.
  702. cd /mnt/rootfs
  703. borg create rootfs_backup .
  704. I am having troubles with some network/FUSE/special filesystem, why?
  705. --------------------------------------------------------------------
  706. Borg is doing nothing special in the filesystem, it only uses very
  707. common and compatible operations (even the locking is just "rename").
  708. So, if you are encountering issues like slowness, corruption or malfunction
  709. when using a specific filesystem, please try if you can reproduce the issues
  710. with a local (non-network) and proven filesystem (like ext4 on Linux).
  711. If you can't reproduce the issue then, you maybe have found an issue within
  712. the filesystem code you used (not with Borg). For this case, it is
  713. recommended that you talk to the developers / support of the network fs and
  714. maybe open an issue in their issue tracker. Do not file an issue in the
  715. Borg issue tracker.
  716. If you can reproduce the issue with the proven filesystem, please file an
  717. issue in the Borg issue tracker about that.
  718. Why does running 'borg check --repair' warn about data loss?
  719. ------------------------------------------------------------
  720. Repair usually works for recovering data in a corrupted archive. However,
  721. it's impossible to predict all modes of corruption. In some very rare
  722. instances, such as malfunctioning storage hardware, additional repo
  723. corruption may occur. If you can't afford to lose the repo, it's strongly
  724. recommended that you perform repair on a copy of the repo.
  725. In other words, the warning is there to emphasize that Borg:
  726. - Will perform automated routines that modify your backup repository
  727. - Might not actually fix the problem you are experiencing
  728. - Might, in very rare cases, further corrupt your repository
  729. In the case of malfunctioning hardware, such as a drive or USB hub
  730. corrupting data when read or written, it's best to diagnose and fix the
  731. cause of the initial corruption before attempting to repair the repo. If
  732. the corruption is caused by a one time event such as a power outage,
  733. running `borg check --repair` will fix most problems.
  734. Why isn't there more progress / ETA information displayed?
  735. ----------------------------------------------------------
  736. Some borg runs take quite a bit, so it would be nice to see a progress display,
  737. maybe even including a ETA (expected time of "arrival" [here rather "completion"]).
  738. For some functionality, this can be done: if the total amount of work is more or
  739. less known, we can display progress. So check if there is a ``--progress`` option.
  740. But sometimes, the total amount is unknown (e.g. for ``borg create`` we just do
  741. a single pass over the filesystem, so we do not know the total file count or data
  742. volume before reaching the end). Adding another pass just to determine that would
  743. take additional time and could be incorrect, if the filesystem is changing.
  744. Even if the fs does not change and we knew count and size of all files, we still
  745. could not compute the ``borg create`` ETA as we do not know the amount of changed
  746. chunks, how the bandwidth of source and destination or system performance might
  747. fluctuate.
  748. You see, trying to display ETA would be futile. The borg developers prefer to
  749. rather not implement progress / ETA display than doing futile attempts.
  750. See also: https://xkcd.com/612/
  751. Why am I getting 'Operation not permitted' errors when backing up on sshfs?
  752. ---------------------------------------------------------------------------
  753. By default, ``sshfs`` is not entirely POSIX-compliant when renaming files due to
  754. a technicality in the SFTP protocol. Fortunately, it also provides a workaround_
  755. to make it behave correctly::
  756. sshfs -o workaround=rename user@host:dir /mnt/dir
  757. .. _workaround: https://unix.stackexchange.com/a/123236
  758. Can I disable checking for free disk space?
  759. -------------------------------------------
  760. In some cases, the free disk space of the target volume is reported incorrectly.
  761. This can happen for CIFS- or FUSE shares. If you are sure that your target volume
  762. will always have enough disk space, you can use the following workaround to disable
  763. checking for free disk space::
  764. borg config -- additional_free_space -2T
  765. How do I rename a repository?
  766. -----------------------------
  767. There is nothing special that needs to be done, you can simply rename the
  768. directory that corresponds to the repository. However, the next time borg
  769. interacts with the repository (i.e, via ``borg list``), depending on the value
  770. of ``BORG_RELOCATED_REPO_ACCESS_IS_OK``, borg may warn you that the repository
  771. has been moved. You will be given a prompt to confirm you are OK with this.
  772. If ``BORG_RELOCATED_REPO_ACCESS_IS_OK`` is unset, borg will interactively ask for
  773. each repository whether it's OK.
  774. It may be useful to set ``BORG_RELOCATED_REPO_ACCESS_IS_OK=yes`` to avoid the
  775. prompts when renaming multiple repositories or in a non-interactive context
  776. such as a script. See :doc:`deployment` for an example.
  777. The repository quota size is reached, what can I do?
  778. ----------------------------------------------------
  779. The simplest solution is to increase or disable the quota and resume the backup:
  780. ::
  781. borg config /path/to/repo storage_quota 0
  782. If you are bound to the quota, you have to free repository space. The first to
  783. try is running :ref:`borg_compact` to free unused backup space (see also
  784. :ref:`separate_compaction`):
  785. ::
  786. borg compact /path/to/repo
  787. If your repository is already compacted, run :ref:`borg_prune` or
  788. :ref:`borg_delete` to delete archives that you do not need anymore, and then run
  789. ``borg compact`` again.
  790. My backup disk is full, what can I do?
  791. --------------------------------------
  792. Borg cannot work if you really have zero free space on the backup disk, so the
  793. first thing you must do is deleting some files to regain free disk space. See
  794. :ref:`about_free_space` for further details.
  795. Some Borg commands that do not change the repository might work under disk-full
  796. conditions, but generally this should be avoided. If your backup disk is already
  797. full when Borg starts a write command like `borg create`, it will abort
  798. immediately and the repository will stay as-is.
  799. Miscellaneous
  800. #############
  801. macOS: borg mounts not shown in Finder's side bar
  802. -------------------------------------------------
  803. https://github.com/osxfuse/osxfuse/wiki/Mount-options#local
  804. Read the above first and use this on your own risk::
  805. borg mount -olocal REPO MOUNTPOINT
  806. Requirements for the borg single-file binary, esp. (g)libc?
  807. -----------------------------------------------------------
  808. We try to build the binary on old, but still supported systems - to keep the
  809. minimum requirement for the (g)libc low. The (g)libc can't be bundled into
  810. the binary as it needs to fit your kernel and OS, but Python and all other
  811. required libraries will be bundled into the binary.
  812. If your system fulfills the minimum (g)libc requirement (see the README that
  813. is released with the binary), there should be no problem. If you are slightly
  814. below the required version, maybe just try. Due to the dynamic loading (or not
  815. loading) of some shared libraries, it might still work depending on what
  816. libraries are actually loaded and used.
  817. In the borg git repository, there is scripts/glibc_check.py that can determine
  818. (based on the symbols' versions they want to link to) whether a set of given
  819. (Linux) binaries works with a given glibc version.