syncthing/man/syncthing.1

269 lines
5.6 KiB
Groff
Raw Normal View History

2015-05-30 04:05:37 -07:00
.\" Man page generated from reStructuredText.
.
2015-06-28 12:10:57 -07:00
.TH "SYNCTHING" "1" "June 28, 2015" "v0.11" "Syncthing"
2015-05-30 04:05:37 -07:00
.SH NAME
syncthing \- Syncthing
.
.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
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
syncthing [\-audit] [\-generate=<dir>] [\-gui\-address=<address>]
[\-gui\-apikey=<key>] [\-gui\-authentication=<username:password>]
[\-home=<dir>] [\-logflags=<flags>] [\-no\-browser] [\-no\-restart]
[\-reset] [\-upgrade] [\-upgrade\-check] [\-upgrade\-to=<url>]
[\-verbose] [\-version]
.ft P
.fi
.UNINDENT
.UNINDENT
.SH DESCRIPTION
.sp
Syncthing is an application that lets you synchronize your files across multiple
devices. This means the creation, modification or deletion of files on one
machine will automatically be replicated to your other devices. We believe your
data is your data alone and you deserve to choose where it is stored. Therefore
Syncthing does not upload your data to the cloud but exchanges your data across
your machines as soon as they are online at the same time.
.SH OPTIONS
.INDENT 0.0
.TP
2015-06-14 04:52:00 -07:00
.B \-audit
2015-05-30 04:05:37 -07:00
Write events to audit file.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-generate=<dir>
2015-05-30 04:05:37 -07:00
Generate key and config in specified dir, then exit.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-gui\-address=<address>
2015-05-30 04:05:37 -07:00
Override GUI address.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-gui\-apikey=<key>
2015-05-30 04:05:37 -07:00
Override GUI API key.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-gui\-authentication=<username:password>
2015-05-30 04:05:37 -07:00
Override GUI authentication; username:password.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-home=<dir>
2015-05-30 04:05:37 -07:00
Set configuration directory. The default configuration directory is:
\fB$HOME/.config/syncthing\fP\&.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-logflags=<flags>
2015-05-30 04:05:37 -07:00
Select information in log line prefix, default 2. The \fB\-logflags\fP value is
a sum of the following:
.INDENT 7.0
.IP \(bu 2
1: Date
.IP \(bu 2
2: Time
.IP \(bu 2
4: Microsecond time
.IP \(bu 2
8: Long filename
.IP \(bu 2
16: Short filename
.UNINDENT
.sp
To prefix each log line with date and time, set \fB\-logflags=3\fP (1 + 2 from
above). The value 0 is used to disable all of the above. The default is to
show time only (2).
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-no\-browser
2015-05-30 04:05:37 -07:00
Do not start a browser.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-no\-restart
2015-05-30 04:05:37 -07:00
Do not restart; just exit.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-reset
2015-05-30 04:05:37 -07:00
Reset the database.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-upgrade
2015-05-30 04:05:37 -07:00
Perform upgrade.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-upgrade\-check
2015-05-30 04:05:37 -07:00
Check for available upgrade.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-upgrade\-to=<url>
2015-05-30 04:05:37 -07:00
Force upgrade directly from specified URL.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-verbose
2015-05-30 04:05:37 -07:00
Print verbose log output.
2015-06-14 04:52:00 -07:00
.UNINDENT
.INDENT 0.0
2015-05-30 04:05:37 -07:00
.TP
2015-06-14 04:52:00 -07:00
.B \-version
2015-05-30 04:05:37 -07:00
Show version.
.UNINDENT
.SH EXIT CODES
.INDENT 0.0
.TP
.B 0
Success / Shutdown
.TP
.B 1
Error
.TP
.B 2
Upgrade not available
.TP
.B 3
Restarting
.TP
2015-06-28 12:10:57 -07:00
.B 4
2015-05-30 04:05:37 -07:00
Upgrading
.UNINDENT
.sp
Some of these exit codes are only returned when running without a monitor
process (with environment variable \fBSTNORESTART\fP set). Exit codes over 125 are
usually returned by the shell/binary loader/default signal handler. Exit codes
over 128+N on Unix usually represent the signal which caused the process to
exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
.SH DEVELOPMENT SETTINGS
.sp
The following environment variables modify Syncthing\(aqs behavior in ways that
are mostly useful for developers. Use with care.
.INDENT 0.0
.TP
.B STGUIASSETS
Directory to load GUI assets from. Overrides compiled in assets.
.TP
.B STTRACE
A comma separated string of facilities to trace. The valid facility strings
are:
.INDENT 7.0
2015-06-14 04:52:00 -07:00
.TP
.B beacon
the beacon package
.TP
.B discover
the discover package
.TP
.B events
the events package
.TP
.B files
the files package
.TP
.B http
the main package; HTTP requests
.TP
.B locks
the sync package; trace long held locks
.TP
.B net
the main package; connections & network messages
.TP
.B model
the model package
.TP
.B scanner
the scanner package
.TP
.B stats
the stats package
.TP
.B upnp
the upnp package
.TP
.B xdr
the xdr package
.TP
.B all
all of the above
2015-05-30 04:05:37 -07:00
.UNINDENT
.TP
.B STPROFILER
Set to a listen address such as "127.0.0.1:9090" to start the profiler with
HTTP access.
.TP
.B STCPUPROFILE
Write a CPU profile to cpu\-$pid.pprof on exit.
.TP
.B STHEAPPROFILE
Write heap profiles to heap\-$pid\-$timestamp.pprof each time heap usage
increases.
.TP
.B STBLOCKPROFILE
Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
.TP
.B STPERFSTATS
Write running performance statistics to perf\-$pid.csv. Not supported on
Windows.
.TP
.B STNOUPGRADE
Disable automatic upgrades.
.TP
.B GOMAXPROCS
Set the maximum number of CPU cores to use. Defaults to all available CPU cores.
.TP
.B GOGC
Percentage of heap growth at which to trigger GC. Default is 100. Lower
numbers keep peak memory usage down, at the price of CPU usage
(ie. performance).
.UNINDENT
.SH SEE ALSO
.sp
\fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
\fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
\fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
\fIsyncthing\-faq(7)\fP
.SH AUTHOR
The Syncthing Authors
.SH COPYRIGHT
2015, The Syncthing Authors
.\" Generated by docutils manpage writer.
.