View Single Post
Old 02-03-2025, 02:33 PM   #18
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 902
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by chaley View Post
Here is a LibraryClosedPlugin that backs up the configuration folder to a zip file when calibre is closed. It ignores library change events and configuration change restarts. It is configured using Preferences / Plugins / Library closed / Backup Configuration Folder then Customize Plugin. The defaults are probably sufficient for most people.

I've tested it on my config that uses CALIBRE_CONFIG_DIRECTORY. I haven't tried it without the ENV variable because everything I run uses it.

Thanks to @dunhill for the shutil.make_archive() pointer. Using it simplified things a lot.

I'll add this to the plugin index if there is sufficient interest.
Thank you very much for enlightening us on this topic as on so many others. And thanks for giving the script idea a plugin form.
dunhill is offline   Reply With Quote