I am trying to copy files from my existing NAS (QNAP) to a new TrueNAS box intended to replace it. I have a couple of nightly one way rsync jobs setup on the QNAP. They use the credentials of the user that is the owner of the target datasets in TrueNAS.
The jobs report as successful on the QNAP and the elapsed times are plausible to move the amount of data involved. Looking at the TrueNAS dataset details though, the data written is a few hundred MB, not the GBs of data the QNAP reports syncing. When I connect to the SMB shares for the synced datasets, I can see the folder structure from the QNAP has been faithfully created, but all the folders are empty.
Given the credentials used and the fact that the sync job successfully creates folders, Iām assuming it is not a permissions issue.
Iād appreciate any pointers on where to start investigating this behaviour. Appreciated!
Hello @Sar6e ,
I am not too familiar with QNAP but I can offer some suggestions:
Iāve got to assume that you are using some kind of web GUI to configure your sync. For your sync job, ensure that the āRecursiveā and āArchiveā options are checked.
I would also double-check your wildcard (*) use or exclusion rules if youāve got any. Those rules may be unintentionally filtering your sync.
If you have access the ability to SSH in to your QNAP, you can run this:
Thanks for nudging me in the right direction. Iād been obsessing on the TrueNAS side because Iām still finding my way there. Iāve also got a number of other replication jobs to other QNAPs and cloud services all running successfully so figured I knew what I was doing there. Your suggestion to check things again on the QNAP side got me on the right track.
You are correct. The rsync job is set up in the Hybrid Backup Sync (HBS) GUI. It does not appear to have any configurable options for recursive and archive settings. In poking around all the options to configure the sync job I did find an option to āApply destination permissionsā which was unchecked. I checked that option and the sync is now working. I can see files in the SMB share and the datasets report plausible disk usage.
I have been battling with this on and off for weeks now and so pleased to have solved this. I really appreciate your response.