Mirror job management tool.
Go to file
Miao Wang 37255cc827 Bump version to 0.6.8 2020-10-15 22:14:51 +08:00
.github/workflows CI: change gid of files in the tar archive to 0 2020-09-14 20:42:12 +08:00
.vscode update editor config 2020-05-25 19:16:53 +08:00
autocomplete feat(bash and zsh autocompletion for tunasynctl): 2016-08-02 23:31:54 +08:00
cmd Add `--format` and `--status` for tunasynctl 2020-06-22 11:25:18 +08:00
docs/zh_CN Improve docs (#138) 2020-09-17 12:43:01 +08:00
internal Bump version to 0.6.8 2020-10-15 22:14:51 +08:00
manager Display worker url in listWorkers 2020-09-14 14:50:12 +08:00
systemd feature(worker): limit rsync memory using cgroup 2016-05-08 17:24:41 +08:00
tests feature(worker): implemented multi-file configrations. closing #23 2016-05-03 16:52:38 +08:00
worker Mock btrfs hook in non linux platforms like darwin 2020-09-17 12:27:46 +08:00
.gitignore Add support for multiarch builds 2020-09-11 17:59:33 +08:00
.testpackages.txt feature(worker): framework of mirror provider 2016-04-30 16:38:17 +08:00
LICENSE Initial commit 2014-10-17 16:24:26 +08:00
Makefile Add support for multiarch builds 2020-09-11 17:59:33 +08:00
README.md Improve docs (#138) 2020-09-17 12:43:01 +08:00
go.mod Support nested mirror config 2020-03-29 00:24:58 +08:00
go.sum Support nested mirror config 2020-03-29 00:24:58 +08:00
package.json chore(git): Made this repo commitizen frendly 2016-05-05 11:45:51 +08:00

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