项目作者: VersBinarii

项目描述 :
Partial file synchronization tool
高级语言: Rust
项目地址: git://github.com/VersBinarii/thesamo.git
创建时间: 2019-10-17T10:21:12Z
项目社区:https://github.com/VersBinarii/thesamo

开源协议:MIT License

下载


thesamo

This is improved version if thesamo rewritten in Rust.

About

This tool allows to syncronize parts of the config files across remote servers. Enclose the part of config that needs to be syncronised in a “tag” and the tool will ensure that the parts of the files are similar across the machines.

Instalation

TBD

Configuration

  1. master = true
  2. minion = false
  3. open_tag = "%%>"
  4. close_tag = "<%%"
  5. [network]
  6. bind_port = 12345
  7. bind_address = "127.0.0.1"
  8. [[files]]
  9. path = "./tests/file_one.txt"
  10. minion_address = "127.0.0.1"
  11. minion_port = 12345
  12. [[files]]
  13. path = "./tests/file_two.txt"
  14. minion_address = "127.0.0.1"
  15. minion_port = 12345

Then in the file one wishes to syncronise just mark the block with the specified tags:

  1. some part of config specific to this machine
  2. %%>
  3. Part of config to be syncronised with other servers
  4. <%%
  5. Rest of the file

Usage

On master:

  1. # master -c <path/to/config/file>

On minion:

  1. # minion -c <path/to/config/file>