How to add a remote folder using command line in Resilio Sync?












0














I have a folder that's currently shared by another machine running Resilio Sync (formerly Bittorrent Sync). How do I grant a new machine access to this share using the config file? I don't want to use the web interface as this is a headless server.



Reading the instructions at Running Sync In Configuration Mode shows a section of the config file dedicated to shared folders:



"shared_folders" :
[
{
"secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
"dir" : "/home/user/resilio/sync_test", // * required field
"use_relay_server" : true, // use relay server when direct connection fails
"use_tracker" : true,
"search_lan" : true,
"use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
"overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
"selective_sync" : false, // add folder in selective sync mode
"known_hosts" : // specify hosts to attempt connection without additional search
[
"192.168.1.2:44444"
]
}
]


And provides the following description:





  1. Shared folders section: If you set shared folders in config file WebUI will be DISABLED. Shared directories specified in configuration
    file override the folders previously added from WebUI.


"secret" - use --generate-secret in command line to create new secret



"dir" - edit path to folder



"use_relay_server" - "true" - relay server will be used when connection fails. False = "use_relay_server" is disabled.



"search_lan" - if "true" is selected, Sync will search your local network for other instances of Sync having the same Keys as yours. The fastest way to discover other peers in LAN. If you choose to disable this option, either make sure that the use of Tracker server is allowed or configure predefined hosts.



"use_sync_trash" - "true" enables SyncArchive to store files deleted on remote devices.



"overwrite changes" - "true" restores modified files to original version (only for read-only version). "selective_sync" - adding folder in selective sync mode.



"known hosts" - specify hosts to attempt connection without additional search.




A look at the linux command line args doesn't say much about specifying keys to tie devices together.










share|improve this question



























    0














    I have a folder that's currently shared by another machine running Resilio Sync (formerly Bittorrent Sync). How do I grant a new machine access to this share using the config file? I don't want to use the web interface as this is a headless server.



    Reading the instructions at Running Sync In Configuration Mode shows a section of the config file dedicated to shared folders:



    "shared_folders" :
    [
    {
    "secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
    "dir" : "/home/user/resilio/sync_test", // * required field
    "use_relay_server" : true, // use relay server when direct connection fails
    "use_tracker" : true,
    "search_lan" : true,
    "use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
    "overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
    "selective_sync" : false, // add folder in selective sync mode
    "known_hosts" : // specify hosts to attempt connection without additional search
    [
    "192.168.1.2:44444"
    ]
    }
    ]


    And provides the following description:





    1. Shared folders section: If you set shared folders in config file WebUI will be DISABLED. Shared directories specified in configuration
      file override the folders previously added from WebUI.


    "secret" - use --generate-secret in command line to create new secret



    "dir" - edit path to folder



    "use_relay_server" - "true" - relay server will be used when connection fails. False = "use_relay_server" is disabled.



    "search_lan" - if "true" is selected, Sync will search your local network for other instances of Sync having the same Keys as yours. The fastest way to discover other peers in LAN. If you choose to disable this option, either make sure that the use of Tracker server is allowed or configure predefined hosts.



    "use_sync_trash" - "true" enables SyncArchive to store files deleted on remote devices.



    "overwrite changes" - "true" restores modified files to original version (only for read-only version). "selective_sync" - adding folder in selective sync mode.



    "known hosts" - specify hosts to attempt connection without additional search.




    A look at the linux command line args doesn't say much about specifying keys to tie devices together.










    share|improve this question

























      0












      0








      0







      I have a folder that's currently shared by another machine running Resilio Sync (formerly Bittorrent Sync). How do I grant a new machine access to this share using the config file? I don't want to use the web interface as this is a headless server.



      Reading the instructions at Running Sync In Configuration Mode shows a section of the config file dedicated to shared folders:



      "shared_folders" :
      [
      {
      "secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
      "dir" : "/home/user/resilio/sync_test", // * required field
      "use_relay_server" : true, // use relay server when direct connection fails
      "use_tracker" : true,
      "search_lan" : true,
      "use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
      "overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
      "selective_sync" : false, // add folder in selective sync mode
      "known_hosts" : // specify hosts to attempt connection without additional search
      [
      "192.168.1.2:44444"
      ]
      }
      ]


      And provides the following description:





      1. Shared folders section: If you set shared folders in config file WebUI will be DISABLED. Shared directories specified in configuration
        file override the folders previously added from WebUI.


      "secret" - use --generate-secret in command line to create new secret



      "dir" - edit path to folder



      "use_relay_server" - "true" - relay server will be used when connection fails. False = "use_relay_server" is disabled.



      "search_lan" - if "true" is selected, Sync will search your local network for other instances of Sync having the same Keys as yours. The fastest way to discover other peers in LAN. If you choose to disable this option, either make sure that the use of Tracker server is allowed or configure predefined hosts.



      "use_sync_trash" - "true" enables SyncArchive to store files deleted on remote devices.



      "overwrite changes" - "true" restores modified files to original version (only for read-only version). "selective_sync" - adding folder in selective sync mode.



      "known hosts" - specify hosts to attempt connection without additional search.




      A look at the linux command line args doesn't say much about specifying keys to tie devices together.










      share|improve this question













      I have a folder that's currently shared by another machine running Resilio Sync (formerly Bittorrent Sync). How do I grant a new machine access to this share using the config file? I don't want to use the web interface as this is a headless server.



      Reading the instructions at Running Sync In Configuration Mode shows a section of the config file dedicated to shared folders:



      "shared_folders" :
      [
      {
      "secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
      "dir" : "/home/user/resilio/sync_test", // * required field
      "use_relay_server" : true, // use relay server when direct connection fails
      "use_tracker" : true,
      "search_lan" : true,
      "use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
      "overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
      "selective_sync" : false, // add folder in selective sync mode
      "known_hosts" : // specify hosts to attempt connection without additional search
      [
      "192.168.1.2:44444"
      ]
      }
      ]


      And provides the following description:





      1. Shared folders section: If you set shared folders in config file WebUI will be DISABLED. Shared directories specified in configuration
        file override the folders previously added from WebUI.


      "secret" - use --generate-secret in command line to create new secret



      "dir" - edit path to folder



      "use_relay_server" - "true" - relay server will be used when connection fails. False = "use_relay_server" is disabled.



      "search_lan" - if "true" is selected, Sync will search your local network for other instances of Sync having the same Keys as yours. The fastest way to discover other peers in LAN. If you choose to disable this option, either make sure that the use of Tracker server is allowed or configure predefined hosts.



      "use_sync_trash" - "true" enables SyncArchive to store files deleted on remote devices.



      "overwrite changes" - "true" restores modified files to original version (only for read-only version). "selective_sync" - adding folder in selective sync mode.



      "known hosts" - specify hosts to attempt connection without additional search.




      A look at the linux command line args doesn't say much about specifying keys to tie devices together.







      linux sync bittorrent resilio-sync






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 11 at 23:01









      bcattle

      1165




      1165



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382792%2fhow-to-add-a-remote-folder-using-command-line-in-resilio-sync%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382792%2fhow-to-add-a-remote-folder-using-command-line-in-resilio-sync%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix