Resilio Sync

Resilio Sync is a proprietary peer-to-peer synchronization tool.

A random port number between 10000 and 65535 is needed and will be used to access your Resilio Sync WebUI once setup is complete. The port number 18226 has automatically been generated and will be used throughout this article, but can be changed if needed.

Installation

  1. Connect to your slot through SSH

  2. Download Resilio Sync

    wget https://download-cdn.getsync.com/stable/linux-x64/resilio-sync_x64.tar.gz
    
  3. Extract Resilio Sync

    mkdir -p ~/rslsync; tar xvzf resilio-sync_x64.tar.gz -C ~/rslsync
    
  4. Create a sample configuration file

    mkdir -p ~/.rslsync; ~/rslsync/rslsync --dump-sample-config > ~/.rslsync/rslsync.conf
    
  5. Open the configuration file for editing

    nano ~/.rslsync/rslsync.conf
    
  6. Move down the file to the line starting with /* storage_path and change the storage_path dir to /home/user/.rslsync. You will need to remove the // from the beginning of the line. Your configuration should look like the following example:

     /* storage_path dir contains axillary app files
       if no storage _path field: .sync dir created in the directory
       where binary is located.
       otherwise user-defined directory will be used
     */
      "storage_path": "/home/user/.rslsync",
    
  7. Move down the file to the line starting with /* directory_root and change the directory root path to /home/user/. This change is required to allow Resilio Sync's web interface to operate properly. You will need to remove the // from the beginning of the line. Your configuration should look like the following example:

     /* directory_root path defines where the WebUI Folder browser starts (linux only). Default value is / */
       "directory_root" : "/home/user/",
    
  8. Move down the file to the line starting with "webui" and change the WebUI port. Your configuration should look like the following example:

       "webui" :
       {
         "listen" : "0.0.0.0:18226" // remove field to disable WebUI
    

    Once you have made these edits, quit nano by pressing Ctrl+X followed by y then press Enter.

  9. (Optional) Create an alias for rslsync for easy startup. This will allow you to use rslsync rather than ~/rslsync/rslsync --config ~/.rslsync/rslsync.conf

     echo "alias rslsync='~/rslsync/rslsync --config ~/.rslsync/rslsync.conf'" >> ~/.bashrc; source ~/.bashrc
    
  10. Start Resilio Sync with ~/rslsync/rslsync --config ~/.rslsync/rslsync.conf or rslsync if you completed step 9.

  11. Enter http://server.whatbox.ca:18226 into your browser. You will need to set up a username and password for accessing Resilio Sync on your slot, as well as name for the Resilio Sync server running on your slot.

  12. (Optional) Clean up by removing the Resilio Sync install archive

    rm ~/resilio-sync_x64.tar.gz
    

Usage

The user manual and FAQ for Resilio Sync operation can be found here.

WebUI

  • You can access the Resilio Sync WebUI by entering http://server.whatbox.ca:18226 into your browser.

Manual Update

  1. Connect to your slot through SSH

  2. Shut down Resilio Sync

    killall rslsync
    
  3. Download Resilio Sync

    rm ~/resilio-sync_x64.tar.gz; wget https://download-cdn.getsync.com/stable/linux-x64/resilio-sync_x64.tar.gz
    
  4. Extract Resilio Sync

    mkdir -p ~/rslsync; tar xvzf resilio-sync_x64.tar.gz -C ~/rslsync
    
  5. Restart Resilio Sync with ~/rslsync/rslsync --config ~/.rslsync/rslsync.conf or rslsync if you completed the optional step 9 from the Installation section.