| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | .\" Man page generated from reStructuredText...TH BORG-SERVE 1 "2017-02-11" "" "borg backup tool".SH NAMEborg-serve \- Start in server mode. This command is usually not used manually...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.spborg serve <options>.SH DESCRIPTION.spThis command starts a repository server process. This command is usually not used manually..SH OPTIONS.spSee \fIborg\-common(1)\fP for common options of Borg commands..SS optional arguments.INDENT 0.0.TP.BI \-\-restrict\-to\-path \ PATHrestrict repository access to PATH. Can be specified multiple times to allow the client access to several directories. Access to all sub\-directories is granted implicitly; PATH doesn\(aqt need to directly point to a repository..TP.B \-\-append\-onlyonly allow appending to repository segment files.UNINDENT.SH EXAMPLES.spborg serve has special support for ssh forced commands (see \fBauthorized_keys\fPexample below): it will detect that you use such a forced command and extractthe value of the \fB\-\-restrict\-to\-path\fP option(s).It will then parse the original command that came from the client, makes surethat it is also \fBborg serve\fP and enforce path restriction(s) as given by theforced command. That way, other options given by the client (like \fB\-\-info\fP or\fB\-\-umask\fP) are preserved (and are not fixed by the forced command)..INDENT 0.0.INDENT 3.5.sp.nf.ft C# Allow an SSH keypair to only run borg, and only have access to /path/to/repo.# Use key options to disable unneeded and potentially dangerous SSH functionality.# This will help to secure an automated remote backup system.$ cat ~/.ssh/authorized_keyscommand="borg serve \-\-restrict\-to\-path /path/to/repo",no\-pty,no\-agent\-forwarding,no\-port\-forwarding,no\-X11\-forwarding,no\-user\-rc ssh\-rsa AAAAB3[...].ft P.fi.UNINDENT.UNINDENT.SH SEE ALSO.sp\fIborg\-common(1)\fP.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |