I got a new computer, and, figuring to be smart, I thought to export my notes as a .jex from my old computer, import them on my new one, and just sync whatever had changed in the last two days.
Worked like a charm - except that instead of downloading the items it needed to sync, Joplin treated all the notes as new ones, and started uploading them. So now I've got about a thousand duplicates in my Dropbox folder, including likely some that I started working on.
Is there any way to see which ones are duplicates? I don't have any way to roll-back Dropbox, and my old computer synced the uploaded files, making that database polluted as well...
I think it should be possible to download the files locally then use software like czkawka (FOSS) to remove the duplicate files. Czkawka uses hashes to determine duplicates, so only files that are exactly the same will be marked as duplicates. It groups the duplicate files allowing you to do stuff like choosing one file from each duplicate group in bulk (you can choose based on file age, for example), and then deleting the other duplicate files.
Edit: Maybe you should ask the program to not look for duplicates inside the .resource folder. I did on mine and for some reason some pictures are duplicate. Removing them might cause some notes could lose their link to the images even though the images themselves wouldn’t be lost, but I’m not sure
Here is my suggestion.
Download all of the files from Dropbox
Make a copy of them just in case and keep it safe
Check for duplicate files locally with Czkawka.
Remove the files from the cloud (again, please make sure to have copies)
Upload the now duplicate free pile of files.
Edit 2: Forgot to say that in czkawka, in order to find any duplicate files no matter how small, you have go to the Items Configuration tab and set Size (bytes) > Min to 0.