If you’ve used Tonido for a while, you’ve probably noticed that it creates tonido.db files in some folders. According to Tonido’s documentation these are index files that Tonido uses to quickly serve rich info about the contents of corresponding folders to remote clients, as opposed to rescanning said contents on demand.
That’s all nice and dandy, except that the .db files can be huge, especially if the folder in question contains a lot of media. How huge? I spotted a >2 GB tonido.db file in a folder containing 5.8 GB of pics. That’s a massive 34% storage overhead. In my case, the problem was compounded because that folder – among other indexed folders – was being synced to my non-Tonido laptop via BitTorrent Sync, and so the index files were needlessly eating hard drive space on the laptop, not to mention sync bandwidth.
Since I don’t use rich remote browsing in Tonido due to the extra bandwidth demand and the fact that I usually know exactly what I’m looking for and where to find it while remote browsing anyway, I decided to disable indexing and delete the corresponding files.
CodeLathe – Tonido’s developer – understandably doesn’t provide disabling instructions, since it has the potential to degrade mobile UX. Here’s how to do it:
- Right-click the Tonido icon in your system tray.
- Click Open….
- Click Settings.
- Click the Misc tab.
- Under Indexed Folders, uncheck Enable Indexing.
- Delete all the folder listings under Indexed Folders.
- In the When to index: drop down menu, select Manually.
- Close the browser tab
- Right-click the Tonido icon in your system tray again.
- Click Shutdown.
- Relaunch Tonido.
The above steps should absolutely ensure that index files don’t get regenerated after you delete them in the steps that follow.
Delete all tonido.db files
- Download and install Everything Search Engine (ESE). I highly recommend the Beta build, x64 if you’re running 64-bit Windows. We’ll be using ESE to easily hunt down and delete the files.
- Launch ESE. If you want to ensure ESE stays up to date while preventing it from launching with Windows and running the in the background, follow Steps 3 to 10. Otherwise, skip to Step 11.
- Click Tools.
- Click Options.
- Click General.
- Check Check for updates on startup.
- Uncheck Start Everything on system startup.
- Click UI.
- Uncheck Run in background.
- Click OK.
- In the search field at the top of the ESE window, enter tonido*.db. The * wildcard ensures that files such as tonido.1.db that are generated by programs like BitTorrent sync are surfaced in results along with tonido.db files.
- When the files surface (practically instantly), select all of them.
- Hit Delete.
- Click OK on any subsequent confirmation dialog. Depending on how many tonido*.db files you have, their size, and your HDD, the deletion process may take a while. Fortunately, deletion takes place via the Windows Shell, which pops up the usual progress dialog.
- Empty the Recycle Bin.
- Close ESE.
- Relaunch ESE.
- Repeat Step 11 to ensure all offending files are gone.
So how much space will this actually save you? In my case, a whopping 10 GB. If you’re a Tonido user who doesn’t need (fast) rich remote browsing, I highly suggest you do the same.