Raspberry Pi+Resilio Sync

Download

mkdir .btsync
cd .btsync
wget
https://download-cdn.resilio.com/stable/linux-arm/resilio-sync_arm.tar.gz
tar -xvf
resilio-sync_arm.tar.gz
rm
resilio-sync_arm.tar.gz
ln -s /lib/arm-linux-gnueabihf/ld-linux.so.3 /lib/ld-linux.so.3

Configure

cd ~/.btsync
./btsync --dump-sample-config > btsync.conf
# browse the sample config file and change what you want

Start at boot

nano /etc/init.d/btsync

Paste the following code in the script:

#! /bin/sh
# /etc/init.d/btsync
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
/home/osmc/.btsync/rslsync --config /home/osmc/.btsync/btsync.conf
;;
stop)
killall rslsync
;;
*)
echo "Usage: /etc/init.d/btsync {start|stop}"
exit 1
;;
esac
exit 0

Then change the permissions, test, and register it to run at boot:

sudo chmod 755 /etc/init.d/btsync
sudo /etc/init.d/btsync start # test that the script starts
sudo /etc/init.d/btsync stop # test that the script stops
sudo update-rc.d btsync defaults

source: http://www.devcows.com/blog/be-in-sync-with-raspberry/

Like what you read? Give Randy a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.