Public Repository

Last pushed: 6 months ago
Short Description
intersoftlab/btsync
Full Description

BitTorrent Sync

About

BitTorrent Sync by BitTorrent, Inc is a proprietary peer-to-peer file synchronization tool available for Windows, Mac, Linux, Android, iOS, Windows Phone, Amazon Kindle Fire and BSD. It can sync files between devices on a local network, or between remote devices over the Internet via a modified version of the BitTorrent protocol.

Tags

  • 1.4 - latest version of 1.4 branch
  • stable - latest version of 2 branch

Environment variables:

  • CRED_UID: uid
  • CRED_GID: gid

Example usage

  • docker run -i --rm --name btsync -v /folder_to_sync/:/data -P intersoftlab/btsync SECRET

    Run without specifying a SECRET will generate and output to the console.

Systemd unit file

btsync@.service

[Unit]
Description=Bittorent sync service %i
After=docker.service
Requires=docker.service
[Service]
Environment=MEMORY=128m
Environment=IMAGE=intersoftlab/btsync:stable
Environment=NAME=%p-%i
Restart=always
TimeoutStartSec=0
RestartSec=5m
TimeoutStopSec=30
ExecStartPre=-/bin/sh -c "docker pull ${IMAGE}"
ExecStartPre=/bin/sh -c "/usr/bin/docker inspect ${NAME} >/dev/null 2>&1 && /usr/bin/docker rm ${NAME} >/dev/null 2>&1 || true"
ExecStart=/bin/sh -c "docker run -i --rm -m=${MEMORY} --name ${NAME} \
-v /data/btsync/%i:/data \
-P \
${IMAGE} %i"
Docker Pull Command
Owner
intersoftlab

Comments (0)