April 29, 20242 yr I have an array of 3 Disks + Parity, a NMVE as Cache and an 8TB HDD under pool device for a local backup. Having rsync with source of /mnt/user/ and /mnt/backup_hdd as target. The rsync runs fine and creates a new folder under /mnt/backup_hdd. So far so good - the folder created by rsync appears under the user shares and is therefore now also part of /mnt/user - which would result in an endless loop and doesn't make sense. I didn't checked that before I run rsync but seams to be a common behavior - each folder I create under /mnt/backup_hdd is automatically added to the shared folders Is there a way to prevent this behavior? My array is running a parity check and therefore I can't test if the option Enable user share assignment within the backup_hdd setting would do the trick. Did anyone know? Edited May 2, 20242 yr by wawibu
April 29, 20242 yr Solution Normally if you have a share of a given name then all top level folders of that name on any pool or array drive are combined to give a single unified view under /mnt/user. Doing an rsync between a user share (anything under /mnt/user) and a drive share (which is what /mnt/backup_hdd is) can easily lead to data loss unless you are very careful and know what you are doing. Have you read the section of the online documentation that discusses User Shares and how they are implemented?
May 2, 20242 yr Author I adjusted the rsync script in a way to include and exclude specific folders. Makes it also more reliable on what gets backup. Was just surprised to see that a folder created on a pool device automatically poping up under shared folders. Once you know, it makes complete sense and provides a simplicity to /mnt/user Thanks
February 5, 20251 yr I know this is an older post but I encountered this exact same scenario for the exact same reason. Posting the solution that I found incase someone finds this thread via google as I did. I have an external HDD that I sync some files to using rsync and the top level folders were showing up under /mnt/user/<folder name> and were directly linked to the directory in the pool drive. The fix for this is stop the array and in the pool settings set "Enable user share assignment" to "No". Once this was complete the rsync works as expected and folders dont show up as shares.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.