Skip to content

ixqbar/logBackupTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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