Нема описа

Shengqi Chen ab8d1c2120 remove all cmd source files from coverage, make shanker happy пре 11 месеци
.github ab8d1c2120 remove all cmd source files from coverage, make shanker happy пре 11 месеци
.umlrootfs b372744640 update ci script пре 2 година
.vscode b2a22a9bbc update editor config пре 5 година
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): пре 9 година
cmd ef32197fef Run go fmt пре 11 месеци
docs bca49abd3c doc: increase default interval пре 2 година
internal a6a03decf0 doc: update README and bump to v0.9.0 пре 11 месеци
manager 95c4d54ee2 Replace boltdb with bbolt, fix #173, close #174 пре 11 месеци
systemd 28c8145137 feature(worker): limit rsync memory using cgroup пре 9 година
tests ef32197fef Run go fmt пре 11 месеци
worker 113df44f19 cgroup: upgrade to containerd/cgroup/v3 пре 11 месеци
.gitignore 559f5705f6 ci: rename all coverage files to .gcov, ignore them in git пре 11 месеци
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider пре 9 година
LICENSE 78f3501e19 Initial commit пре 11 година
Makefile 559f5705f6 ci: rename all coverage files to .gcov, ignore them in git пре 11 месеци
README.md a6a03decf0 doc: update README and bump to v0.9.0 пре 11 месеци
go.mod 113df44f19 cgroup: upgrade to containerd/cgroup/v3 пре 11 месеци
go.sum b4ca6f4c1e Run go get -u пре 11 месеци
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.22

# for native arch
> make all
# for other arch
> make ARCH=linux-arm64 all

Binaries are in build-$ARCH/, e.g., build-linux-amd64/.