Skip to content

Make Syncthing portable #416

Closed
Closed

Description

@arneko

Hi there,
I love how well Syncthing works so far. This is a feature request, that should (?) be fairly simple to integrate:

It would be cool if Syncthing would look for config files in the directory it's running from first and then ideally accept relative paths (not sure if that requires any modification), so that you could put it on a thumb-drive and run it from any computer, thereby updating a shared folder, or creating a backup of said drive. This is working nicely in my head. Don't know if there are any issues to be expected though...

Keep up the great work!

Activity

  1. calmh commented on Jul 12, 2014

    @calmh
    Member

    I think this could be accomplished with a batch/shell file that starts syncthing with the thumbdrive as current directory and with -home syncthing-config or something. The path given to -home is taken as relative to the current directory unless it's an absolute path.

    I'm not sure what doubleclicking a .bat file on Windows results in, but I'd hope it sets the current directory to the directory the batch file is in.

  2. niphlod commented on Jul 22, 2014

    @niphlod

    in any case, in a batch file
    %~dp0
    holds the current directory of the bat launched, so at least that part should be covered...

  3. calmh commented on Jul 23, 2014

    @calmh
    Member

    Sounds like all the required mechanisms are in place, then.

  4. heX16 commented on Jul 15, 2015

    @heX16

    Just for information.
    I use this bat file for portable start in Windows:

    @echo off
    %~d0
    cd "%~d0%~p0"
    IF %ERRORLEVEL%==0 GOTO PATH_IS_OK
    exit
    :PATH_IS_OK
    
    rem set AppData=D:\Data\syncthing\
    set AppData=%~d0%~p0
    set LocalAppData=%AppData%
    start "syncthing" /B /LOW syncthing.exe
    
  5. AceXare commented on Dec 10, 2015

    @AceXare

    I used this on my USB Stick wherever i go, but on the work I am using Linux.
    Is it possible for Linux to run portable, too?

  6. rumpelsepp commented on Dec 10, 2015

    @rumpelsepp
    Contributor

    You can just start the binary. But please switch over to the forum, there's a lot of helpful people over there. :)

    https://forum.syncthing.net/c/support

  7. AceXare commented on Dec 10, 2015

    @AceXare

    okay thank you :)

  8. added
    frozen-due-to-age
    on Jun 17, 2017
  9. locked and limited conversation to collaborators on Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions