Sem descrição

z4yx 94cf0b4bdb fix possible null dereferencing, reported by #96 há 6 anos atrás
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): há 9 anos atrás
cmd 7eb119b892 singleton of worker is not used, so remove it há 6 anos atrás
docs 3e6e6f9b14 Update tips.md há 6 anos atrás
internal d0deeb19a9 extract mirror size from rsync provider automatically há 6 anos atrás
manager 1025189542 fix possible null dereferencing in server_test há 6 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 94cf0b4bdb fix possible null dereferencing, reported by #96 há 6 anos atrás
.gitignore 03fdaeeb7f chore(cmd): added git hash and build date to version há 9 anos atrás
.testandcover.bash e37bb44fa3 ci(tunasync): upload to github releases há 8 anos atrás
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider há 9 anos atrás
.travis.yml 540eea8aeb set golang version to 1.11 há 6 anos atrás
LICENSE 78f3501e19 Initial commit há 11 anos atrás
Makefile e37bb44fa3 ci(tunasync): upload to github releases há 8 anos atrás
README.md 3b52f93e7e Fix ascii chart for `Job Run Process` há 6 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 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  +--+->|  job run  +--->|  post-exec  +-+-->| post-success |
+-----------+  ^  +-----------+    +-------------+ |   +--------------+
               |                                   |
               |      +-----------------+          | Failed
               +------+    post-fail    |<---------+
                      +-----------------+

Building

Setup GOPATH like this.

Then:

go get -d github.com/tuna/tunasync/cmd/tunasync
cd $GOPATH/src/github.com/tuna/tunasync
make

If you have multiple GOPATHs, replace the $GOPATH with your first one.