Nenhuma descrição

Shengqi Chen 95c4d54ee2 Replace boltdb with bbolt, fix #173, close #174 8 meses atrás
.github 3ad551f73d ci: fix go version to 1.22 8 meses atrás
.umlrootfs b372744640 update ci script 2 anos atrás
.vscode b2a22a9bbc update editor config 5 anos atrás
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): 9 anos atrás
cmd ef32197fef Run go fmt 8 meses atrás
docs bca49abd3c doc: increase default interval 2 anos atrás
internal 99c7ab6b65 Fix more linter issues 8 meses atrás
manager 95c4d54ee2 Replace boltdb with bbolt, fix #173, close #174 8 meses atrás
systemd 28c8145137 feature(worker): limit rsync memory using cgroup 9 anos atrás
tests ef32197fef Run go fmt 8 meses atrás
worker ef32197fef Run go fmt 8 meses atrás
.gitignore 8ebace4d9a Add support for multiarch builds 5 anos atrás
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider 9 anos atrás
LICENSE 78f3501e19 Initial commit 11 anos atrás
Makefile 3562907af9 Makefile: add clean PHONY target 8 meses atrás
README.md 94b9b20626 Improve docs (#138) 5 anos atrás
go.mod 95c4d54ee2 Replace boltdb with bbolt, fix #173, close #174 8 meses atrás
go.sum 95c4d54ee2 Replace boltdb with bbolt, fix #173, close #174 8 meses atrás
package.json c311648546 chore(git): Made this repo commitizen frendly 9 anos atrás

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/.