I recently noticed a strange issue with one of my datasets on TrueNAS.
Some files keep getting moved or copied (a mix of both) into a folder at the top of the dataset. The folder’s name starts with the character ` (a backtick). I didn’t create this folder, and I’m not sure what caused it. I don’t have any scripts that would be moving files.
Any ideas what might cause files to move into a folder like this?
I’ve checked the logs and couldn’t find anything obvious, though I’m not experienced with reading logs.
Any insights or suggestions for troubleshooting would be greatly appreciated. Thanks!
If the folder always has the same name you could probably bpftrace to catch the offending process.
As far as tracepoints go, if it’s not exported via NFS you can probably just trace the mkdir / mkdirat syscalls, otherwise you’d be stuck with a kprobe for vfs_mkdir.
Yes it does, I should also mention that the backtick often gets self-nested… Here’s what it looks like like right now after I cleaned it up a few days ago
`
`\`
`\`\`
`\`\`\a folder
It seems to consistently copy the same folders too, but there’s no rhyme or reason to why it choses those folders
I had one of my shared mounted to another server running SyncThing but the mount point was incorrect (was changed) so SyncThing was the cause of files appearing in `