用samba和Microsoft Sync Toy從linux備份日誌文件到windows

利用samba使linux系統日誌備份到windows系統,以便查看與分析。

一.linux作爲服務器,

  1.   安裝samba,yum  -y install samba samba-client samba-swat

  2. 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.用定時任務定時運行





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章