Нет описания

dependabot[bot] f2b22d059c Bump github.com/gin-gonic/gin from 1.7.0 to 1.7.7 (#185) 2 лет назад
.github c3b742c2a8 move set up go after checkout 2 лет назад
.umlrootfs b372744640 update ci script 2 лет назад
.vscode b2a22a9bbc update editor config 5 лет назад
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): 9 лет назад
cmd 60f92ceebb Fix incomplete usage on tunasynctl set-size 2 лет назад
docs bca49abd3c doc: increase default interval 2 лет назад
internal c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 4 лет назад
manager 32c4d38449 Fix wrong usage of val in leveldb backend 4 лет назад
systemd 28c8145137 feature(worker): limit rsync memory using cgroup 9 лет назад
tests 5c8d90608c feature(worker): implemented multi-file configrations. closing #23 9 лет назад
worker 45099fc7d3 Fix config_diff panics when old config or new config is empty 2 лет назад
.gitignore 8ebace4d9a Add support for multiarch builds 5 лет назад
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider 9 лет назад
LICENSE 78f3501e19 Initial commit 11 лет назад
Makefile c26e9fb64a cgroupv2: add tests on cgv1 for implicit cgroup 4 лет назад
README.md 94b9b20626 Improve docs (#138) 5 лет назад
go.mod f2b22d059c Bump github.com/gin-gonic/gin from 1.7.0 to 1.7.7 (#185) 2 лет назад
go.sum f2b22d059c Bump github.com/gin-gonic/gin from 1.7.0 to 1.7.7 (#185) 2 лет назад
package.json c311648546 chore(git): Made this repo commitizen frendly 9 лет назад

README.md

tunasync

Build Status Coverage Status Commitizen friendly GPLv3

Get Started

Download

Pre-built binary for Linux x86_64 and ARM64 is available at Github releases.

Design

# Architecture

- Manager: Central instance for status and job management
- Worker: Runs mirror jobs

+------------+ +---+                  +---+
| Client API | |   |    Job Status    |   |    +----------+     +----------+ 
+------------+ |   +----------------->|   |--->|  mirror  +---->|  mirror  | 
+------------+ |   |                  | w |    |  config  |     | provider | 
| Worker API | | H |                  | o |    +----------+     +----+-----+ 
+------------+ | T |   Job Control    | r |                          |       
+------------+ | T +----------------->| k |       +------------+     |       
| Job/Status | | P |   Start/Stop/... | e |       | mirror job |<----+       
| Management | | S |                  | r |       +------^-----+             
+------------+ |   |   Update Status  |   |    +---------+---------+         
+------------+ |   <------------------+   |    |     Scheduler     |
|   BoltDB   | |   |                  |   |    +-------------------+
+------------+ +---+                  +---+


# Job Run Process


PreSyncing                           Syncing                               Success
+-----------+     +----------+    +-----------+    +-------------+     +--------------+
|  pre-job  +--+->| pre-exec +--->|  job run  +--->|  post-exec  +-+-->| post-success |
+-----------+  ^  +----------+    +-----------+    +-------------+ |   +--------------+
               |                                                   |
               |                +-----------------+                | Failed
               +----------------+    post-fail    |<---------------+
                                +-----------------+

Building

Go version: 1.13

> make all

Binaries in the build-linux-amd64/.