2017-02-05 13:22:06 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
2019-09-06 22:36:10 +00:00
|
|
|
.TH BORG-WITH-LOCK 1 "2019-09-06" "" "borg backup tool"
|
2017-02-05 13:22:06 +00:00
|
|
|
.SH NAME
|
|
|
|
borg-with-lock \- run a user specified command with the repository lock held
|
|
|
|
.
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.sp
|
2017-11-25 13:38:04 +00:00
|
|
|
borg [common options] with\-lock [options] REPOSITORY COMMAND [ARGS...]
|
2017-02-05 13:22:06 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.sp
|
|
|
|
This command runs a user\-specified command while the repository lock is held.
|
|
|
|
.sp
|
|
|
|
It will first try to acquire the lock (make sure that no other operation is
|
|
|
|
running in the repo), then execute the given command as a subprocess and wait
|
|
|
|
for its termination, release the lock and return the user command\(aqs return
|
|
|
|
code as borg\(aqs return code.
|
2017-11-25 13:38:04 +00:00
|
|
|
.sp
|
|
|
|
\fBNOTE:\fP
|
2017-02-05 13:22:06 +00:00
|
|
|
.INDENT 0.0
|
2017-11-25 13:38:04 +00:00
|
|
|
.INDENT 3.5
|
|
|
|
If you copy a repository with the lock held, the lock will be present in
|
|
|
|
the copy. Thus, before using borg on the copy from a different host,
|
|
|
|
you need to use "borg break\-lock" on the copied repository, because
|
|
|
|
Borg is cautious and does not automatically remove stale locks made by a different host.
|
|
|
|
.UNINDENT
|
2017-02-05 13:22:06 +00:00
|
|
|
.UNINDENT
|
|
|
|
.SH OPTIONS
|
|
|
|
.sp
|
|
|
|
See \fIborg\-common(1)\fP for common options of Borg commands.
|
|
|
|
.SS arguments
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B REPOSITORY
|
|
|
|
repository to lock
|
|
|
|
.TP
|
|
|
|
.B COMMAND
|
|
|
|
command to run
|
|
|
|
.TP
|
|
|
|
.B ARGS
|
|
|
|
command arguments
|
|
|
|
.UNINDENT
|
|
|
|
.SH SEE ALSO
|
|
|
|
.sp
|
|
|
|
\fIborg\-common(1)\fP
|
|
|
|
.SH AUTHOR
|
|
|
|
The Borg Collective
|
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|