I created a new profile, let's call it "NEW". I exported a notebook from the default profile using JEX format and imported it to the new profile. Once I was sure the new profile was right, I deleted that notebook from the default profile. I can see each profile's folder in /.config/joplin-desktop.
Everything was working fine then I realized I had not set up the sync for the new profile. So, I chose OneDrive, which is the same as the default profile. Then the system synced and the "NEW" profile contains ALL notebooks from each profile. The default profile contains all of the notebooks it had before, but does not include the notebook I added to the new profile. I'm now afraid to do anything because I don't know if they are somehow connected or what's going on.
If you want to keep them separate, you would need to use a completely separate OneDrive account for that. Otherwise, you will end up with the two merged together, as you've already experienced.
So, each profile needs to use a different cloud service or they get remerged because the folder structure on my drive isn't replicated on the cloud server?
On Windows I installed the software with the defaults and then set up sync to OneDrive and it put the default profile in a folder and when I created a new profile it created a new folder and they're both synced OneDrive and they're separate from each other.
I'm sorry that I can't tell you what's wrong only I have only a single Microsoft One Drive account and multiple profiles and I don't have the problem that you're having.
Good point. That is definitely an issue. My notebooks have grown and I really need to focus on separate topics. That's why I created the profiles. Subscribing to multiple cloud services can get expensive fast.
The way that I got started was I installed Joplin on my Windows computer and began using it and creating notes and notebooks and at that point it was a standalone installation then I went into options and set up synchronization for Microsoft OneDrive and it went out and created the folder on the OneDrive server and put all the data there. There is a separate folder for each Joplin profile that I have and my mobile devices are also configured to use Microsoft OneDrive and I can switch to any profile I want so there has to be a way for you to make this work we just need to figure out what's going on.
Just a warning, but please make sure you have a full backup before trying to do anything with that Joplin folder in OneDrive. It normally isn't supposed to be accessed outside of the Joplin application itself. Trying to fiddle with it manually can easily lead to data loss.
If it's working that way I don't think that's intended behaviour. There is actually a bug with OneDrive that causes multiple folders for an application (in this case Joplin) to sometimes be created, and this issue has been known to cause most / all of a user's notes to get spontaneously deleted on the Joplin client (prevention for this has been added in Joplin 3.3 onwards, if you keep failsafe enabled). There is no way to select which folder on OneDrive is used when you set Joplin to sync to OneDrive, so I don't know how you have managed to achieve this setup.
As @tomasz86 mentioned you should use separate OneDrive accounts if you want to keep profiles separate