Nenhuma descrição

z4yx 001703a059 CI runs slower, give it more time 5 anos atrás
.github 92a255fd3c Update tunasync.yml 5 anos atrás
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): 9 anos atrás
cmd 2bbd4afda8 remove logger.Error() 5 anos atrás
docs 22cfdfc9c2 [mirror config] extra rsync options (#107) 5 anos atrás
internal b132192448 Add a debugging log level to tunasynctl 5 anos atrás
manager ad28e8aacc using Go Modules 5 anos atrás
systemd 28c8145137 feature(worker): limit rsync memory using cgroup 9 anos atrás
tests 5c8d90608c feature(worker): implemented multi-file configrations. closing #23 9 anos atrás
worker 001703a059 CI runs slower, give it more time 5 anos atrás
.gitignore 03fdaeeb7f chore(cmd): added git hash and build date to version 9 anos atrás
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider 9 anos atrás
LICENSE 78f3501e19 Initial commit 11 anos atrás
Makefile 3a2888dd5d Bye Travis! 5 anos atrás
README.md 3a2888dd5d Bye Travis! 5 anos atrás
go.mod 7a9895350b Support nested mirror config 5 anos atrás
go.sum 7a9895350b Support nested mirror config 5 anos atrás
package.json c311648546 chore(git): Made this repo commitizen frendly 9 anos atrás

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