BitTorrent

From Indie IT Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

BitTorrent Sync is a new tool for the quick and easy synchronisation between computers. Secure, unlimited file-syncing. No cloud required.

HOWTO:

INSTALL

Terminal:~$

cd
wget http://download-lb.utorrent.com/endpoint/btsync/os/linux-x64/track/stable -O btsync_x64.tar.gz
tar -xzvf btsync_x64.tar.gz 
clamscan btsync
./btsync 
sudo netstat -ntap |grep '8888'
  • Go to http://ipaddress:8888 on first computer.
  • Create an admin user account with password.
  • Add a folder and copy the secret code.
  • Go to http://ipaddress:8888 on second computer.
  • Create an admin user account with password.
  • Add a folder to be synced with and paste the code from the first computer.

That's it. Unbelievably brilliant.

Latest Build

1.4

http://syncapp.bittorrent.com/1.4.111/

http://forum.bittorrent.com/forum/56-sync-general-discussion/

CHECK FOR LATEST VERSION USING A SCRIPT

Terminal:~$

lynx -dump -nolist http://forum.bittorrent.com/forum/56-sync-general-discussion/ |grep -m1 'Latest Desktop Build' |sed -e 's/^\[.*\]//'

DOWNLOAD ALL FILES FOR THE LATEST VERSION

Terminal:~$

wget -r -np -k http://syncapp.bittorrent.com/1.4.111/
...
FINISHED --2015-03-26 09:24:12--
Total wall clock time: 41s
Downloaded: 14 files, 53M in 38s (1.41 MB/s)

2.0

DO NOT USE. Period. At least, not yet.

SSH TUNNEL SECURE WEB GUI

Terminal:~$

ssh root@server -L 8889:localhost:8888 -N
browse: http://127.0.0.1:8889/gui

TWO WAY SYNC FOR PHOTOS

Camera <--> Laptop
  1. Create folder on laptop (mkdir ~/Pictures/Camera)
  2. Use web gui on laptop to Add Folder (browse to ~/Pictures/Camera)
  3. Use web gui on laptop to copy Read & Write Key, then email the key to your phone
  4. Start Android app on phone, press Add Folder, press Enter Key, paste key

HOWTO: Allow any PC on Network to access the Web GUI

./btsync --webui.listen 0.0.0.0:8888

http://sync-help.bittorrent.com/customer/portal/articles/1672241-guide-to-linux

DEBUGGING

http://sync-help.bittorrent.com/customer/portal/articles/1634349-collecting-debug-logs

HOWTO: FIX:

1.4.x LINKS NONSENSE

In the new version 1.4 of btsync they have changed to using links instead of keys.

Change the http:// at the beginning for btsync:// like the following (not real link and not complete!)...

https://link.getsync.com/?f=Camera&sz=25E6&s=V6NE3WAJ73INVCX&UHKVQB6ZRHZRUOX&i=C2QAZ

...to...

btsync://link.getsync.com/?f=Camera&sz=25E6&s=V6NE3WAJ73INVCX&UHKVQB6ZRHZRUOX&i=C2QAZ

To get the new Web based GUI to work, click the funny looking dog-turd that's supposed to be a link icon, and then paste the new btsync:// version of the link, navigate to your chosen folder and then click OK.

INFO

DOCUMENTATION

Official Web Site - http://www.bittorrent.com/sync

Forums - http://forum.bittorrent.com/forum/107-bittorrent-sync/

PDF Manual - http://btsync.s3-website-us-east-1.amazonaws.com/BitTorrentSyncUserGuide.pdf

Online Manual - http://www.bittorrent.com/help/manual/

Mobile Manual - http://www.bittorrent.com/sync/help/mobile-manual

Excellent Tutorial (with ownership and permissions) - https://www.digitalocean.com/community/articles/how-to-use-bittorrent-sync-to-synchronize-directories-in-ubuntu-12-04

Another Tutorial (with ownership and permissions) - http://drup.org/setting-permissions-bittorrent-sync

Ubuntu How To Quickly Run As User - http://askubuntu.com/questions/284683/how-to-run-bittorrent-sync

Ubuntu How To Set Up System Wide - http://adammatthews.co.uk/2013/05/install-bittorrent-sync-on-debian-raspbian/

ownCloud + BitTorrent Sync - http://adammatthews.co.uk/2013/05/owncloud-bit-torrent-sync-dropbox-clone/

Fourm Post about WAN connections - http://forum.bittorrent.com/topic/29954-dht-question-in-sync-private-files-or-worldwide-files/