docs: Improve borg with-lock (#3780)

docs: improve borg with-lock, link to FAQ
This commit is contained in:
infectormp 2018-04-19 16:29:47 +03:00 committed by TW
parent da9c1b7a42
commit 60f9849336
1 changed files with 2 additions and 6 deletions

View File

@ -57,9 +57,5 @@ running in the repo), then execute the given command as a subprocess and wait
for its termination, release the lock and return the user command's return
code as borg's return code.
.. note::
If you copy a repository with the lock held, the lock will be present in
the copy. Thus, before using borg on the copy from a different host,
you need to use "borg break-lock" on the copied repository, because
Borg is cautious and does not automatically remove stale locks made by a different host.
As example you can use "borg with-lock" to copy a repo to another location
(see :ref:`can_i_copy_or_synchronize_my_repo_to_another_location` in the FAQ).