Add note from borg with-lock about copy repo (#3749)

docs: Improve FAQ about copying a repo
This commit is contained in:
infectormp 2018-04-19 16:34:11 +03:00 committed by TW
parent 60f9849336
commit 8f6be74993
1 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,13 @@ Can I copy or synchronize my repo to another location?
------------------------------------------------------ ------------------------------------------------------
Yes, you could just copy all the files. Make sure you do that while no Yes, you could just copy all the files. Make sure you do that while no
backup is running (use `borg with-lock ...`). So what you get here is this: backup is running. If you copy a repository while a backup is running,
the lock held will be present in the copy. Thus, before using borg on the copy
from a different host, you need to use :ref:`break-lock` on the copied
repository, because Borg is cautious and does not automatically remove
stale locks made by a different host.
So what you get here is this:
- client machine ---borg create---> repo1 - client machine ---borg create---> repo1
- repo1 ---copy---> repo2 - repo1 ---copy---> repo2