4.1 安装Samba服务
4.1.1 安装配置Samba
a)安装samba
sudo pacman -S samba
b) 配置samba
配置samba
vim /etc/samba/smb.conf
输入内容:
[global]
workgroup = WORKGROUP
server string = archnas
security = user
map to guest = Bad User
[data]
comment = data
path = /data
public = yes
browseable = yes
writeable = yes
read only = no
available = yes
guest ok = yes
write list = archnas
c)检查配置
检查smb配置
testparm
d) 启用服务
sudo systemctl restart nmb && sudo systemctl enable nmb
sudo systemctl restart smb && sudo systemctl enable smb
4.1.2安装配置WSDD
安装wsdd。这样windows无法可以在网络发现nas主机。
pacman -S wsdd
sudo systemctl restart wsdd && sudo systemctl enable wsdd
4.2 安装Rsync服务:
4.2.2 安装配置Rsync
a) 安装rsync
sudo pacman -S rsync
b) 同步上传到远程rsync服务器
rsync -avzPt books somebody@192.168.10.228::data