As you may know, Raspberry Pi is quite good at long-running services and applications for its low power consumption.
Thanks to that, it can be your personal 24/7 working cloud storage with BitTorrent Sync, and this post is about how that can be achieved.
1. Download the binary of BitTorrent Sync
Download btsync_arm.tar.gz from here and extract btsync from it.
2. Create a config file
Create a sample config file,
and edit configurations as you need: device_name, storage_path, login, and password …
3. Register BitTorrent Sync as a service
A. For init.d
a. Create an init.d script
Create a file with following content:
or download from here.
b. Edit the init.d script
Then replace BTSYNC_DIR and BTSYNC_CONFIG with the locations of yours.
c. Register it as service
d. Run BitTorrent Sync
B. For systemd
a. Create a service file
Create a file,
and fill it with following content:
Replace GROUP_NAME, USER_NAME, BTSYNC_DIR, and BTSYNC_CONF_DIR to yours.
b. Enable it
Now you can start it with
sudo systemctl start btsync.service and stop it with
sudo systemctl stop btsync.service.
While BitTorrent Sync service is running, you can connect to the web UI through:
with the username(login) and password you set in the config file.
4. Trouble Shooting
X. It doesn’t work!
If anything goes wrong or doesn’t work as you expected, try executing the binary directly:
then you’ll see the reason in the error message.
X. It crashes my Raspberry Pi!
If you see
smsc95xx 1-1.1:1.0: eth0: kevent 2 may have been dropped in your kernel logs, or your Raspberry Pi stops working on heavy traffic, try these: