Нема описа

Zenithal bca49abd3c doc: increase default interval пре 2 година
.github 531b09c21a ci: minor fixes пре 4 година
.umlrootfs 84fcc8e76b CI: add tests in cgroupv2 пре 4 година
.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 c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 пре 4 година
.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 c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 пре 4 година
go.sum c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 пре 4 година
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/.