I have inadvertently created a mess. I have a drive mounted on a Mac running 10.5.8 and a FreeNAS 0.7.2 box. I had been mounting the FreeNAS share on OSX via SMB, but recently learned that I was doing it wrong and set up an rsync server on the FreeNAS box. When I ran rsync again, the result was a mess - folders and files that had special characters in their names (accents, umlauts, question marks, etc.) ended up being copied a second time such that I have two sets of those folder and everything in them. In the case where it was a file, the file copied over, but now shows up with a weird name like AGRJE~ (example, not a real one).
I also access the FreeNAS drive with a Windows machine and have tried NFS on the OSX machine. Each type of connection shows me something slightly different. Even if I SSH into the FreeNAS box, I see two copies of those folders with different numbers of question marks in them or question marks in different places.
I have Googled everything I can think of relating to this, but it sounds like an unresolved issue from mixing multiple file systems and types of connections. It sounds like SMB is the "safest" way of accessing, but also the slowest. My questions are as follows:
How do I get back to where I was? I know I could wipe the drive and do an rsync via SMB to get everything back to the way it was, but that's a slow and tedious option.
Once restored, how should I proceed in the future? Is there a better way than SMB that doesn't mess with the file names? Should I just strip all the special characters using a Python script or something like that and proceed from there?
Thanks for any attempts to ease my pain. -Matt