borg-with-lock.1 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-WITH-LOCK 1 "2021-05-11" "" "borg backup tool"
  4. .SH NAME
  5. borg-with-lock \- run a user specified command with the repository lock held
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] with\-lock [options] REPOSITORY COMMAND [ARGS...]
  36. .SH DESCRIPTION
  37. .sp
  38. This command runs a user\-specified command while the repository lock is held.
  39. .sp
  40. It will first try to acquire the lock (make sure that no other operation is
  41. running in the repo), then execute the given command as a subprocess and wait
  42. for its termination, release the lock and return the user command\(aqs return
  43. code as borg\(aqs return code.
  44. .sp
  45. \fBNOTE:\fP
  46. .INDENT 0.0
  47. .INDENT 3.5
  48. If you copy a repository with the lock held, the lock will be present in
  49. the copy. Thus, before using borg on the copy from a different host,
  50. you need to use "borg break\-lock" on the copied repository, because
  51. Borg is cautious and does not automatically remove stale locks made by a different host.
  52. .UNINDENT
  53. .UNINDENT
  54. .SH OPTIONS
  55. .sp
  56. See \fIborg\-common(1)\fP for common options of Borg commands.
  57. .SS arguments
  58. .INDENT 0.0
  59. .TP
  60. .B REPOSITORY
  61. repository to lock
  62. .TP
  63. .B COMMAND
  64. command to run
  65. .TP
  66. .B ARGS
  67. command arguments
  68. .UNINDENT
  69. .SH SEE ALSO
  70. .sp
  71. \fIborg\-common(1)\fP
  72. .SH AUTHOR
  73. The Borg Collective
  74. .\" Generated by docutils manpage writer.
  75. .