Rsync job creates folders but does not copy files

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:

rsync -av <source_dir>/ <username@ip_destination>:<destination_dir>/

One could also do a dry run via the command line to see whatā€™s going on.

rsync -av --dry-run <source_dir>/ <username@ip_destination>:<destination_dir>/

Good luck!

1 Like

Hi @nihil2040,

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.