BitTorrent Sync (BTSync) is a file sharing system that relays on the BitTorrent protocol, and differs from other file sharing software in the connection type between devices. Instead of uploading the files to an online server, and then each device fetching them from the server itself, the file transfer is done directly from peer to peer, and therefore there is no limit on data storage and/or transfer speed.
BitTorrent Sync encrypts the traffic between devices with AES cypher and a 256-bit key created on the base of the secret — a random string (20 bytes or more) that is unique for every folder to be synchronized.
BitTorrent Sync uses a specific method for folder sharing, the 'secret': a random 21-byte key Base32-encoded.
When a device makes a folder and adds it to his BTSync client, a secret is generated. From now on, every device that wants to synchronize that folder, must know the secret key.
The synchronization has no speed or size limits, as long as both devices have enough disk space.
Alternatively, the bare 'tar.gz' packaged executable is downloadable from the official website. The rest of this guide assumes that you are using the btsync AUR package.
The Linux client of BTSync does not use a typical GUI, instead it sets up a WebUI server accessible at
localhost:8888. Shared folders can also be configured statically in a configuration file, but doing so disables the WebGUI.
Once installed, you'll first need to create a configuration file at
~/.config/btsync/btsync.conf, see #Configuration. When that is done, start and (if you want it to start on boot) enable the service:
# systemctl start btsync@user # systemctl enable btsync@user
user by the desired username. The service will run as the named user.
You can also run it as the
btsync system user, just leave the
@user part out:
# systemctl enable btsync # systemctl start btsync
Configuration for this user is located at
/etc/btsync.conf, and metadata is saved in
/var/lib/btsync/ by default. You'll probably want to review the configuration settings, see below.
A sample configuration file can be created using
btsync --dump-sample-config. You'll probably want to change some of the settings, including:
Automatic config file creation
TheAUR package provides a systemd service (firstname.lastname@example.org) that, if enabled, triggers when email@example.com starts and creates a config file with default values if it does not already exist. The install script enables firstname.lastname@example.org by default.
~/.config/btsync/btsync.conf if it does not exist, and guesses some default values of the settings: