2
0

Тайлбар байхгүй

dependabot[bot] 7bc3e8f193 Bump golang.org/x/sys from 0.0.0-20210426230700-d19ff857e887 to 0.1.0 (#188) 2 жил өмнө
.github 8ddcc46255 bump to go 1.18 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 7bc3e8f193 Bump golang.org/x/sys from 0.0.0-20210426230700-d19ff857e887 to 0.1.0 (#188) 2 жил өмнө
go.sum 7bc3e8f193 Bump golang.org/x/sys from 0.0.0-20210426230700-d19ff857e887 to 0.1.0 (#188) 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/.