borg-with-lock.1 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-WITH-LOCK" 1 "2023-09-14" "" "borg backup tool"
  31. .SH NAME
  32. borg-with-lock \- run a user specified command with the repository lock held
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] with\-lock [options] 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 \(dqborg break\-lock\(dq 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 COMMAND
  61. command to run
  62. .TP
  63. .B ARGS
  64. command arguments
  65. .UNINDENT
  66. .SH SEE ALSO
  67. .sp
  68. \fIborg\-common(1)\fP
  69. .SH AUTHOR
  70. The Borg Collective
  71. .\" Generated by docutils manpage writer.
  72. .