Resilio Sync

This article will show you how to install and configure Resilio Sync. This software will allow you to sync to another computer or device via the BitTorrent protocol.

You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).

Installation

Install Resilio Sync by logging in via SSH, then copying and pasting the following:

wget https://download-cdn.getsync.com/stable/linux-x64/resilio-sync_x64.tar.gz
mkdir -p ~/rslsync; tar xvzf resilio-sync_x64.tar.gz -C ~/rslsync
mkdir -p ~/.rslsync; ~/rslsync/rslsync --dump-sample-config > ~/.rslsync/rslsync.conf && rm resilio-sync_x64.tar.gz

Configuring before starting Resilio Sync

The config needs to be tweaked before you can run Resilio Sync. Copy and paste these commands:

sed -i 's|MYHOME|'"$HOME"'|g' ~/.rslsync/rslsync.conf
sed -i 's|8888|'$(shuf -i 10001-49000 -n 1)'|g' ~/.rslsync/rslsync.conf

Starting, stopping and restarting

This section covers the Resilio Sync process - starting it, stopping it and restarting it. It also covers checking if the process is running, in case that becomes necessary.

start
~/rslsync/rslsync --config ~/.rslsync/rslsync.conf && echo http://$(hostname -f):$(sed -rn 's|.*"listen" : "0.0.0.0:(.*)".*|\1|p' ~/.rslsync/rslsync.conf)
check running
pgrep -fu "$(whoami)" ".rslsync/rslsync.conf"
stop
kill "$(pgrep -fu "$(whoami)" ".rslsync/rslsync.conf")"
restart
kill "$(pgrep -fu "$(whoami)" ".rslsync/rslsync.conf")" && sleep 5 && ~/rslsync/rslsync --config ~/.rslsync/rslsync.conf && echo http://$(hostname -f):$(sed -rn 's|.*"listen" : "0.0.0.0:(.*)".*|\1|p' ~/.rslsync/rslsync.conf)
kill (force stop)
kill -9 "$(pgrep -fu "$(whoami)" "rslsync.conf")"

The check running command will return a process number if rTorrent is running. If it doesn't return anything, rTorrent is not running.

Automatically restarting Resilio Sync if it is not running

Cron jobs can be used to check if Resilio Sync is running and start it up if it is not. There is a separate page on configuring cron jobs.

Configuring

Creating a username and password for the webUI

Once you access the webUI using the URL provided by the start command you'll be prompted to create a user account. This is only for accessing and using the webUI.

Once the user account creation is completed and you have agreed to the conditions on the webUI page you'll be prompted to log in.

Troubleshooting

If you experience issues or crashes using Resilio Sync the first thing to try and do is restart the software using the command listed in the section above, Starting, stopping and restarting.

Uninstallation

kill -9 "$(pgrep -fu "$(whoami)" "rslsync.conf")"
rm -rf ~/rslsync ~/.rslsync

External links