2
0

borg-with-lock.1 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-WITH-LOCK 1 "2017-02-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 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. .INDENT 0.0
  45. .TP
  46. .B Note: if you copy a repository with the lock held, the lock will be present in
  47. the copy, obviously. Thus, before using borg on the copy, you need to
  48. use "borg break\-lock" on it.
  49. .UNINDENT
  50. .SH OPTIONS
  51. .sp
  52. See \fIborg\-common(1)\fP for common options of Borg commands.
  53. .SS arguments
  54. .INDENT 0.0
  55. .TP
  56. .B REPOSITORY
  57. repository to lock
  58. .TP
  59. .B COMMAND
  60. command to run
  61. .TP
  62. .B ARGS
  63. command arguments
  64. .UNINDENT
  65. .SH SEE ALSO
  66. .sp
  67. \fIborg\-common(1)\fP
  68. .SH AUTHOR
  69. The Borg Collective
  70. .\" Generated by docutils manpage writer.
  71. .