Resilio Sync is a peer‑to‑peer file synchronization service based on BitTorrent technology. Instead of syncing through a cloud server, every device syncs directly with every other device, giving you:
sudo apt update && sudo apt upgrade -ycurl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
sudo apt install docker-compose-pluginsudo usermod -aG docker $USERsudo systemctl enable dockersudo rebootdocker run hello-worldmkdir ~/docker mkdir ~/docker/resilio
In ~/docker/resilio, on the source and target devices, create docker-compose.yml
services:
resilio:
image: linuxserver/resilio-sync:latest
container_name: resilio
network_mode: host
environment:
- PUID=1000
- PGID=1000
- UMASK=022
volumes:
- ./config:/config
- /:/sync # This will allow you to sync any directory on the system. You can change this to be more restrictive
restart: unless-stopped
From within ~/docker/resilio on the source and target run:
docker compose up -d
docker logs resilio
Open your browser and go to "http://<SOURCE_DEVICE>:8888 and "http://<TARGET_DEVICE>:8888. You can now add a remote device in the GUI and start syncing directories.
Once you have Resilio running on two or more systems (SystemA and SystemB), you can start syncing directories. Go to SystemA, click on the + and select Standard Folder. You should see a list of what's available. Click the directory you want to sync and click Open. Click on Key and copy the Key. Now go to SystemB, click on the +, click on Enter a key of link, paste in the Key, select Next and select the directory you want to sync to and click Open. The directories will start syncing in seconds.
If you find my content useful, please consider supporting this page: