The manual says this: Note that when you specify an absolute path starting with /, it's applied at the array root dir and not at the local filesystem root dir.
To me, that reads, but I could be wrong, that as your exclude starts with a slash, /, it would look in the overall filesystem for /thisdir to exclude. To have thisdir excluded on the mounts would be: thisdir/ assuming that it was at the root of the mounted drive.
So, if you want to exclude /mnt/X/thisdir, but not /mnt/V(W)(Y)/thisdir then: exclude /mnt/X/thisdir/
Cheers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm pretty sure I tried /mnt/X/thisdir, and it didn't exclude anything -
which is why I changed it to just /thisdir. (Which correctly excluded
/mnt/X/thisdir, but also excludes /mnt/Y/thisdir, which I might not want.)
I assumed that without the leading slash, the pattern would match
"thisdir" at any sub-folder level: /mnt/X/foo/thisdir, etc.
On 4/6/2015 2:05 PM, MQMan wrote:
The manual says this: Note that when you specify an absolute path starting with /, it's applied at the array root dir and not at the local filesystem root dir.
To me, that reads, but I could be wrong, that as your exclude starts with a slash, /, it would look in the overall filesystem for /thisdir to exclude. To have thisdir excluded on the mounts would be: thisdir/ assuming that it was at the root of the mounted drive.
So, if you want to exclude /mnt/X/thisdir, but not /mnt/V(W)(Y)/thisdir then: exclude /mnt/X/thisdir/
After doing some quick tests, as I have 6 disks with the same directory structure, it looks like your assertion is correct that /thisdir/ is at the mountpoint only and thisdir/ is anywhere drilling down from there, and it applies across all the disks.
So I'm not sure about how the terms "array root dir" and "local filesystem root dir" came about.
Cheers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't have the time and energy for now to either check the source or test how is working but I've had trouble with this before. In the end I gave up and I have one excluded file name (some huge disk image) and one excluded folder name (like snapraid_ignored) which I'm using always for things to be ignored by snapraid.
Of course this won't work in your case and frankly I'd like to know too what the correct way to go about this.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The manual states that exclude paths are relative to mount points. So the following config:
will exclude /thisdir on all disks. But what if I want to exclude only /mnt/X/thisdir - is this possible?
I believe you would have to rename thisdir on X to something unique.
The manual says this: Note that when you specify an absolute path starting with /, it's applied at the array root dir and not at the local filesystem root dir.
To me, that reads, but I could be wrong, that as your exclude starts with a slash, /, it would look in the overall filesystem for /thisdir to exclude. To have thisdir excluded on the mounts would be: thisdir/ assuming that it was at the root of the mounted drive.
So, if you want to exclude /mnt/X/thisdir, but not /mnt/V(W)(Y)/thisdir then: exclude /mnt/X/thisdir/
Cheers.
I'm pretty sure I tried /mnt/X/thisdir, and it didn't exclude anything -
which is why I changed it to just /thisdir. (Which correctly excluded
/mnt/X/thisdir, but also excludes /mnt/Y/thisdir, which I might not want.)
I assumed that without the leading slash, the pattern would match
"thisdir" at any sub-folder level: /mnt/X/foo/thisdir, etc.
On 4/6/2015 2:05 PM, MQMan wrote:
After doing some quick tests, as I have 6 disks with the same directory structure, it looks like your assertion is correct that /thisdir/ is at the mountpoint only and thisdir/ is anywhere drilling down from there, and it applies across all the disks.
So I'm not sure about how the terms "array root dir" and "local filesystem root dir" came about.
Cheers.
I don't have the time and energy for now to either check the source or test how is working but I've had trouble with this before. In the end I gave up and I have one excluded file name (some huge disk image) and one excluded folder name (like snapraid_ignored) which I'm using always for things to be ignored by snapraid.
Of course this won't work in your case and frankly I'd like to know too what the correct way to go about this.