Thank you very much @laurent , I tried the solution you propose with two different profiles, and it works perfectly considering what I want to do.
The only problem is that I don't know how to change the path where my notes should go in my veracrypt folder. I have seen where they are on my local hard drive, but I can't see how to move the address of them in joplin (under linux), and I didn't see in the FAQ where the procedure is indicated. Can anyone help me with this if possible? I'm sorry if there was a thread on this already, the only one I've seen that talks about it, several users have advised against it:
Best
Thomas