Sem descrição

Miao Wang 88b7827e66 Bump version to 0.6.9 há 4 anos atrás
.github e9ce7fc87a CI: change gid of files in the tar archive to 0 há 5 anos atrás
.vscode b2a22a9bbc update editor config há 5 anos atrás
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): há 9 anos atrás
cmd 600874ae54 Add `--format` and `--status` for tunasynctl há 5 anos atrás
docs 94b9b20626 Improve docs (#138) há 5 anos atrás
internal 88b7827e66 Bump version to 0.6.9 há 4 anos atrás
manager 3fd71d777b Display worker url in listWorkers há 5 anos atrás
systemd 28c8145137 feature(worker): limit rsync memory using cgroup há 9 anos atrás
tests 5c8d90608c feature(worker): implemented multi-file configrations. closing #23 há 9 anos atrás
worker 49b74ae552 Bugfix change the order of options in 2f9e96a há 4 anos atrás
.gitignore 8ebace4d9a Add support for multiarch builds há 5 anos atrás
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider há 9 anos atrás
LICENSE 78f3501e19 Initial commit há 11 anos atrás
Makefile 8ebace4d9a Add support for multiarch builds há 5 anos atrás
README.md 94b9b20626 Improve docs (#138) há 5 anos atrás
go.mod 7a9895350b Support nested mirror config há 5 anos atrás
go.sum 7a9895350b Support nested mirror config há 5 anos atrás
package.json c311648546 chore(git): Made this repo commitizen frendly há 9 anos atrás

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