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
[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
./logBackupTool --config ../conf/logBackup.conf --server
./logBackupTool --file test.log --path server_save_path
更多疑问请+qq群 233415606 or website http://www.hnphper.com