利用samba使linux系統日誌備份到windows系統,以便查看與分析。
一.linux作爲服務器,
安裝samba,yum -y install samba samba-client samba-swat
vi /etc/samba/smb.conf
在文件結尾添加如下行:
[share]
comment=this is Linux share directory
path=/home/myth/share
hosts allow = 172.28.8.177
public=yes
writable=yes
保存退出:wq
2.重啓smb服務
service smb restart
centos系統還需要創建用戶
useradd samba
smbpasswd -a samba
二.windows作爲客戶端
1.使用軟件 sync toy 配置(http://jingyan.baidu.com/article/d8072ac47fd902ec95cefd20.html)
2.用定時任務定時運行