I noticed that it is sometimes very slow if the content server needs to be shut down.
I added timing statements. Here is a shutdown on my machine (win11):
Code:
[8.61] [Backup Configuration Folder]: starting backup process
[11.72] [Backup Configuration Folder]: wrote config backup to [filename]
[11.72] [Backup Configuration Folder]: finished
You can see that it ran in 3.11 seconds, most of which was spent creating the zip file.
Note that the time to create the archive depends directly on the amount of stuff in the config folder. Mine contains 374 files, 48 folders, with a total size of 23.9MB (reported by Windows properties).
Attached is a version with timed prints. It has a new version number, but I haven't released it.
EDIT: If you don't see the debug output then you might need to use calibre-debug -g. I'll try it.
EDIT 2: No, the plugin's debug prints don't show in the "restart in debug mode" log.
EDIT 3: I made a release, putting the new zip in the first post. I deleted the version in this post.
EDIT 4: A fix for the problem where the plugin's log messages don't appear when calibre is restarted in debug mode is in calibre source.