Keine Beschreibung

Jiajie Chen 9f7f18c2c4 Fix missing method in mock test vor 5 Jahren
.github 92a255fd3c Update tunasync.yml vor 5 Jahren
.vscode b2a22a9bbc update editor config vor 5 Jahren
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): vor 9 Jahren
cmd 600874ae54 Add `--format` and `--status` for tunasynctl vor 5 Jahren
docs e3c8cded6c fix examlpe with docker_image vor 5 Jahren
internal c8600d094e Add LastRegister to WorkerStatus vor 5 Jahren
manager 9f7f18c2c4 Fix missing method in mock test vor 5 Jahren
systemd 28c8145137 feature(worker): limit rsync memory using cgroup vor 9 Jahren
tests 5c8d90608c feature(worker): implemented multi-file configrations. closing #23 vor 9 Jahren
worker b4b81ef7e9 Fix typo: registor -> register vor 5 Jahren
.gitignore 03fdaeeb7f chore(cmd): added git hash and build date to version vor 9 Jahren
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider vor 9 Jahren
LICENSE 78f3501e19 Initial commit vor 11 Jahren
Makefile 3a2888dd5d Bye Travis! vor 5 Jahren
README.md 3a2888dd5d Bye Travis! vor 5 Jahren
go.mod 7a9895350b Support nested mirror config vor 5 Jahren
go.sum 7a9895350b Support nested mirror config vor 5 Jahren
package.json c311648546 chore(git): Made this repo commitizen frendly vor 9 Jahren

README.md

tunasync

Build Status Coverage Status Commitizen friendly GPLv3

Get Started

Download

Pre-built binary for Linux x86_64 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/.