Bez popisu

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

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