Installation
2018-01-02 update: Bittorrent Sync (btsync) has been split off into a new company named Resilio and it’s now called Resilio Sync (rslsync). This post has been updated with the new ppa and paths.
2016-04-04 update: This post has been updated to use the official Bittorrent Sync repository from Bittorrent which didn’t exist when the post was originally created.
Repository setup
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio-sync.list
If there are any third-party btsync repositories, remove them from /etc/apt/sources.list.d
.
Then add the public key for the repository:
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -
Server/Desktop install
sudo aptitude update
sudo aptitude install resilio-sync
systemd setup
To run the resilio sync service as user rslsync,
sudo systemctl enable resilio-sync
sudo systemctl start resilio-sync
Otherwise, to run it as the current user, edit /usr/lib/systemd/user/resilio-sync.service
and change WantedBy=multi-user.target
to WantedBy=default.target
. Then,
systemctl --user enable resilio-sync
systemctl --user enable resilio-sync
Configuration
Accessing the web interface
Access the web UI by navigating to localhost:8888. If rslsync was installed on a remote headless server, modify the following line in /etc/resilio-sync/config.json
from
"listen" : "127.0.0.1:8888"
to
"listen" : "0.0.0.0:8888"
and access the web interface using the remote host’s IP. After modifying the config file, restart rslsync using
sudo service resilio-sync restart
Setting up permissions
This guide on digital ocean is helpful for configuring permissions if you’re having issues with running the service as user rslsync.
References
- https://help.resilio.com/hc/en-us/articles/206178924-Installing-Sync-package-on-Linux
- https://www.digitalocean.com/community/tutorials/how-to-use-bittorrent-sync-to-synchronize-directories-in-ubuntu-12-04#add-your-user-to-the-btsync-group-and-give-the-root-user-ownership