Rsync duplicate nested subdirectories

Joined
May 24, 2021
Messages
4
I know I'm doing something wrong here, I'm just not sure what or where...

I am looking to mirror all my data sets from one TrueNAS 13 system [carbon] to another TrueNAS 13 system [calcium]. Then, keep them synchronized.

I have rsync tasks setup on [carbon] for each data set to push to the receiver [calcium], which has a rsync module for each data set.

The problem is that on the receiver [calcium], I have duplicate nested subdirectories:
calcium[/mnt/tank12/animation/animation]
calcium[/mnt/tank12/movies/movies]
calcium[/mnt/tank12/music/music3] <= music3 is the name of the data set on [carbon]
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
If you use the wrong options for Rsync, you can get irregular results. For example, the option "-x" / "--one-file-system", will skip child file systems / datasets. Without it, it will copy the whole path, including child file systems / datasets.

I don't know the options available for TrueNAS Rsync tasks... as I don't use it that way.
 
Top