I just (nearly) lost thousands of MD files while moving them from one DB to another.
Here is a breakdown of what happened:
-
I had a indexed folder with thousands of text files in Greek and English.
English files were tagged with ENG and Greek files with GRC. -
I moved the indexed items to the database.
-
I used the tags pane to filter only the English files with the ‘ENG’ tag.
-
My folder structure appeared. I moved it to a new database.
The (wrong) assumption was that it would pass along only the ENG files while maintaining the GRC files organized under the same folder structure in the old database. -
The outcome was baffling. Most folders were moved, but some were left behind (without any files).
Similarly, most ENG files were moved, but ALL greek files disappeared. By this I mean the following: the tag filter wasn’t active anymore and they were not in the new database; they were not in the old database; they were not in the trash.
My first backup was Dropbox since the indexed folder was synced. For some reason the files were not in the cloud along with other deleted files either. Luckily, the folder was also a git repository so I managed to revert the changes using a git manager (sublime merge, in this case).
Maybe it was my fault and mistake. Maybe it is a bug. I don’t know.