From 5f896c52931679c240b413ec13ad4aa83973ad06 Mon Sep 17 00:00:00 2001 From: stuart nelson Date: Mon, 5 May 2025 18:30:26 +0200 Subject: [PATCH 1/2] feat(fs): allow setting tmpdir on command line --- users/syncthing.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/users/syncthing.rst b/users/syncthing.rst index e22e1c9e3..fe97c97e6 100644 --- a/users/syncthing.rst +++ b/users/syncthing.rst @@ -12,7 +12,7 @@ Synopsis syncthing [serve] [--audit] [--auditfile=] [--browser-only] [--device-id] [--generate=] [--gui-address=
] [--gui-apikey=] - [--home= | --config= --data=] + [--home= | --config= --data=] [--tmp=] [--logfile=] [--logflags=] [--log-max-old-files=] [--log-max-size=] [--no-browser] [--no-console] [--no-restart] [--paths] [--paused] @@ -133,6 +133,13 @@ Options Set data (e.g. database) directory. Alternative to ``--home`` and must be used together with ``--config``. +.. cmdoption:: --tmp= + + Set directory to store temporary files. Temporary file names are hashed to + prevent collisions in the event two files with the same name are being + synced across different folders. Must be on the same filesystem as the + destination folder. + .. cmdoption:: --logfile= Set destination filename for logging (use ``"-"`` for stdout, which is the From 951a904b623b43557ec6ab72f175a9347ec52c64 Mon Sep 17 00:00:00 2001 From: stuart nelson Date: Mon, 5 May 2025 20:02:52 +0200 Subject: [PATCH 2/2] tmp->temp --- users/syncthing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/syncthing.rst b/users/syncthing.rst index fe97c97e6..e0a15cdb4 100644 --- a/users/syncthing.rst +++ b/users/syncthing.rst @@ -12,7 +12,7 @@ Synopsis syncthing [serve] [--audit] [--auditfile=] [--browser-only] [--device-id] [--generate=] [--gui-address=
] [--gui-apikey=] - [--home= | --config= --data=] [--tmp=] + [--home= | --config= --data=] [--temp=] [--logfile=] [--logflags=] [--log-max-old-files=] [--log-max-size=] [--no-browser] [--no-console] [--no-restart] [--paths] [--paused] @@ -133,7 +133,7 @@ Options Set data (e.g. database) directory. Alternative to ``--home`` and must be used together with ``--config``. -.. cmdoption:: --tmp= +.. cmdoption:: --temp= Set directory to store temporary files. Temporary file names are hashed to prevent collisions in the event two files with the same name are being