Files
syncthing/users/syncthing.rst
T

193 lines
4.7 KiB
ReStructuredText
Raw Normal View History

2015-05-30 00:15:02 +02:00
Syncthing
=========
Synopsis
--------
::
syncthing [-audit] [-generate=<dir>] [-gui-address=<address>]
[-gui-apikey=<key>] [-gui-authentication=<username:password>]
2015-08-08 00:22:39 -04:00
[-home=<dir>] [-logflags=<flags>] [-no-browser] [-no-console]
[-no-restart] [-reset] [-upgrade] [-upgrade-check] [-upgrade-to=<url>]
2015-05-30 00:15:02 +02:00
[-verbose] [-version]
Description
-----------
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.
Options
-------
2015-06-10 00:59:25 +02:00
.. cmdoption:: -audit
2015-05-30 00:15:02 +02:00
Write events to audit file.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -generate=<dir>
2015-05-30 00:15:02 +02:00
Generate key and config in specified dir, then exit.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -gui-address=<address>
2015-05-30 00:15:02 +02:00
Override GUI address.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -gui-apikey=<key>
2015-05-30 00:15:02 +02:00
Override GUI API key.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -gui-authentication=<username:password>
2015-05-30 00:15:02 +02:00
Override GUI authentication; username:password.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -home=<dir>
2015-05-30 00:15:02 +02:00
Set configuration directory. The default configuration directory is:
``$HOME/.config/syncthing``.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -logflags=<flags>
2015-05-30 00:15:02 +02:00
Select information in log line prefix, default 2. The ``-logflags`` value is
a sum of the following:
- 1: Date
- 2: Time
- 4: Microsecond time
- 8: Long filename
- 16: Short filename
To prefix each log line with date and time, set ``-logflags=3`` (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-10 00:59:25 +02:00
.. cmdoption:: -no-browser
2015-05-30 00:15:02 +02:00
Do not start a browser.
2015-06-10 00:59:25 +02:00
2015-08-08 00:22:39 -04:00
.. cmdoption:: -no-console
2015-08-08 22:43:06 -04:00
Hide the console window. (On Windows only)
2015-08-08 00:22:39 -04:00
2015-06-10 00:59:25 +02:00
.. cmdoption:: -no-restart
2015-05-30 00:15:02 +02:00
Do not restart; just exit.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -reset
2015-05-30 00:15:02 +02:00
Reset the database.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -upgrade
2015-05-30 00:15:02 +02:00
Perform upgrade.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -upgrade-check
2015-05-30 00:15:02 +02:00
Check for available upgrade.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -upgrade-to=<url>
2015-05-30 00:15:02 +02:00
Force upgrade directly from specified URL.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -verbose
2015-05-30 00:15:02 +02:00
Print verbose log output.
2015-06-10 00:59:25 +02:00
.. cmdoption:: -version
2015-05-30 00:15:02 +02:00
Show version.
2015-05-30 00:30:01 +02:00
Exit Codes
----------
0
Success / Shutdown
1
Error
2
Upgrade not available
3
Restarting
2015-06-26 08:43:12 +01:00
4
2015-05-30 00:30:01 +02:00
Upgrading
Some of these exit codes are only returned when running without a monitor
process (with environment variable ``STNORESTART`` 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, ``128 + 9 (SIGKILL) = 137``.
2015-05-30 00:15:02 +02:00
Development Settings
--------------------
The following environment variables modify Syncthing's behavior in ways that
are mostly useful for developers. Use with care.
STGUIASSETS
Directory to load GUI assets from. Overrides compiled in assets.
STTRACE
A comma separated string of facilities to trace. The valid facility strings
are:
2015-06-10 01:01:59 +02:00
beacon
the beacon package
discover
the discover package
events
the events package
files
the files package
http
the main package; HTTP requests
locks
the sync package; trace long held locks
net
the main package; connections & network messages
model
the model package
scanner
the scanner package
stats
the stats package
upnp
the upnp package
xdr
the xdr package
all
all of the above
2015-05-30 00:15:02 +02:00
STPROFILER
Set to a listen address such as "127.0.0.1:9090" to start the profiler with
HTTP access.
STCPUPROFILE
Write a CPU profile to cpu-$pid.pprof on exit.
STHEAPPROFILE
2015-07-01 08:32:54 +02:00
Write heap profiles to ``heap-$pid-$timestamp.pprof`` each time heap usage
2015-05-30 00:15:02 +02:00
increases.
STBLOCKPROFILE
Write block profiles to ``block-$pid-$timestamp.pprof`` every 20 seconds.
STPERFSTATS
2015-07-01 08:32:54 +02:00
Write running performance statistics to ``perf-$pid.csv``. Not supported on
2015-05-30 00:15:02 +02:00
Windows.
STNOUPGRADE
Disable automatic upgrades.
GOMAXPROCS
2015-07-01 08:32:54 +02:00
Set the maximum number of CPU cores to use. Defaults to all available CPU
cores.
2015-05-30 00:15:02 +02:00
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).
2015-05-31 10:13:01 +02:00
See Also
2015-05-30 00:15:02 +02:00
--------
:manpage:`syncthing-config(5)`, :manpage:`syncthing-stignore(5)`,
:manpage:`syncthing-device-ids(7)`, :manpage:`syncthing-security(7)`,
:manpage:`syncthing-networking(7)`, :manpage:`syncthing-versioning(7)`,
:manpage:`syncthing-faq(7)`