From 8f6be74993477b0bee48da10b9044e9ca6142067 Mon Sep 17 00:00:00 2001 From: infectormp Date: Thu, 19 Apr 2018 16:34:11 +0300 Subject: [PATCH] Add note from borg with-lock about copy repo (#3749) docs: Improve FAQ about copying a repo --- docs/faq.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/faq.rst b/docs/faq.rst index 0bbb09571..c58ad4c85 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -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 -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 - repo1 ---copy---> repo2