Няма описание

Phy a44891d3e8 Set proper logging level on tunasynctl-cmd преди 5 години
.github 92a255fd3c Update tunasync.yml преди 5 години
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): преди 9 години
cmd 4d461bd172 Use logger to print some debug messages than fmt.print преди 5 години
docs 22cfdfc9c2 [mirror config] extra rsync options (#107) преди 5 години
internal a44891d3e8 Set proper logging level on tunasynctl-cmd преди 5 години
manager ad28e8aacc using Go Modules преди 5 години
systemd 28c8145137 feature(worker): limit rsync memory using cgroup преди 9 години
tests 5c8d90608c feature(worker): implemented multi-file configrations. closing #23 преди 9 години
worker 4d461bd172 Use logger to print some debug messages than fmt.print преди 5 години
.gitignore 03fdaeeb7f chore(cmd): added git hash and build date to version преди 9 години
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider преди 9 години
LICENSE 78f3501e19 Initial commit преди 11 години
Makefile 3a2888dd5d Bye Travis! преди 5 години
README.md 3a2888dd5d Bye Travis! преди 5 години
go.mod 07cd7b5f1f update go.mod преди 5 години
go.sum 07cd7b5f1f update go.mod преди 5 години
package.json c311648546 chore(git): Made this repo commitizen frendly преди 9 години

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