笔者一直用的是Truenas,所以今天就拿Turenas为例,对拥有两台NAS的用户,可以做到NAS之间的主从备份,或者异地NAS之间的同步或备份 https://www.truenas.com/ TrueNas官网
一,准备工作
1,两台NAS:A:192.168.3.200和B:192.168.3.199
把A的soft文件夹内容全部推到B的soft文件夹里,首先,我们先访问B的WEB界面,建立好数据集soft,设置为SMB共享


2,打开服务,然后开启rsync服务,进入配置页面,Tcp默认端口不变

3,配置模组相关参数

4,最后配置完成后,记得要开启服务

到这里B服务端192.168.3.199的Rsync模组就配置完成了
二,配置A端同步到B端
1, 我们先访问A的WEB界面192.18.3.200,A端是已经建立好的数据集soft,且已经设置为了SMB共享

2,在“任务”-“Rsync任务”,右边添加新的任务,笔者这里之前添加过了

3,具体配置如下

4,配置完成后,立即执行,就可以开始了,Rsync就可把A端的soft文件夹推到B的soft文件夹

在NAS本系统上执行把/mnt/DataCenter同步到/mnt/Data16T/8Tb_Back
rsync -av /mnt/DataCenter root@192.168.3.128:/mnt/Data16T/8Tb_Back或
rsync -av /mnt/DataCenter /mnt/Data16T/8Tb_Back
同步提示Error: [EZFS_NOSPC] cannot remove /dev/disk/by-partuuid/5570f71d-3bd3-4fb8-a
什么问题
我的是TrueNAS-SCALE-22.12.3.2
在“编辑数据集”-“高级选项”-“ACL模式下选择“直通”,然后在rsyc命令