first update the packages sources
sudo apt-get update && sudo apt-get upgrade
download the btsync packacke from bittorrent sync Webpage and install it on the raspberry pi. Then create the directory and set the user rights
wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_arm.tar.gz
tar -zxf btsync_arm.tar.gz
sudo mkdir /etc/btsync
sudo mv btsync /etc/btsync
rm btsync_arm.tar.gz
cd /etc/btsync
sudo chown root:root btsync
sudo chmod 755 btsync
start the btsync service
sudo ./btsync
try to connect via a web browser to the webfrontend
http://raspberry:8888/
create a sync directory on a exernal device
cd
mkdir /media/data/btsync
create a init script to start and stop btsync
sudo nano /etc/init.d/btsync
copy the stuff below into that init script
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the btsync
### END INIT INFO
case "$1" in
start)
/etc/btsync/btsync
;;
stop)
killall btsync
;;
*)
echo "Usage: /etc/init.d/btsync {start|stop}"
exit 1
;;
esac
exit 0
make the init script executable
sudo chmod 755 /etc/init.d/btsync
sudo update-rc.d btsync defaults
Source: