Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 961 Bytes

README.md

File metadata and controls

52 lines (44 loc) · 961 Bytes

logBackupTool

usage

Usage: ./logBackupTool [options]
Options:
  -client
    	run as client mode (default true)
  -config string
    	config (default "/etc/logBackup.conf")
  -file string
    	set send file to server
  -name string
    	rename send file to server backup path
  -path string
    	set send file to server backup path
  -server
    	run as server mode

logBackup.conf

[server]
bind-address=0.0.0.0:2010
datadir=/Users/xingqiba/workspace/go/logBackupTool/logs
user=nobody
group=nobody
perm=0755

[client]
server-address=127.0.0.1:2010

server

./logBackupTool --config ../conf/logBackup.conf --server

client

./logBackupTool --file test.log --path server_save_path

snapshoot

clients

FAQ

更多疑问请+qq群 233415606 or website http://www.hnphper.com