![]() |
#1 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,238
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
[Library Closed Plugin] Backup configuration folder(s)
When calibre is closed this plugin makes a backup copy of the calibre configuration folder. A backup isn't made if calibre is closed before an automatic restart.
Configuration: To configure the plugin, go to calibre's Preferences / Plugins / Library Closed plugins. Either double-click on the plugin or select this plugin and press the "Customize plugin" button, then fill in the boxes as you wish. Documentation is in the tooltips for the entry boxes. Notes:
Version History: Spoiler:
Last edited by chaley; 02-08-2025 at 05:13 AM. |
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,238
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
[Reserved for future use]
Last edited by chaley; 02-06-2025 at 07:37 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,337
Karma: 29266456
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Backup configuration folder(s)
A plugin to create zip archive of calibre's configuration folder at a designated location that would run when calibre is explicitly closed (i.e. not for a restart) - be good if it included a timestamp in the archive name - e.g. "20240108 120321 calibre config backup".
I know it can be done in a script but . . . BR |
![]() |
![]() |
![]() |
#4 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 7086475
Join Date: Sep 2020
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,337
Karma: 29266456
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 7086475
Join Date: Sep 2020
Device: none
|
|
![]() |
![]() |
![]() |
#7 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 801
Karma: 409966
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
I hope it is useful |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,446
Karma: 12559681
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you very much! I'll make it run in my cygwin.
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 801
Karma: 409966
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,446
Karma: 12559681
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I've got the script but I wasn't really thinking on converting it on a plugin because any plugin should run with calibre open, and making a copy of that folder while calibre is still making use of some files perhaps it's not the best idea. Perhaps I'm wrong, I'm not sure.
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,238
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Last edited by chaley; 02-02-2025 at 03:38 PM. |
|
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 801
Karma: 409966
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
The script I sent was written in python but I added a tkinter interface. Now I modified it to qt6 but I can't put it together in a plugin. I managed to add it to actions chain as a module but not as an action.
Here I leave the modification to qt6. Last edited by dunhill; 02-02-2025 at 05:28 PM. |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,238
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
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. Edit: See the first post for the newest version of the plugin. Last edited by chaley; 02-04-2025 at 06:32 PM. |
![]() |
![]() |
![]() |
#14 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 7086475
Join Date: Sep 2020
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,024
Karma: 77592280
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|Seems to work fine on my calibre install on a Chromebook. Would be nice to have an easy means to select backup location in the configuration dialog; had to type in the path I wanted (I know... 3rd world problem)
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
backup function for the configuration folder? | Martin | Calibre | 18 | 08-18-2023 05:03 AM |
Is there a way to backup my settings/configuration? | birkmaggs | Calibre | 8 | 04-21-2023 11:26 PM |
Configuration backup | kshane9 | Library Management | 2 | 11-17-2017 03:11 PM |
Change location of configuration folder | macnab69 | Library Management | 10 | 11-04-2015 10:22 AM |
Local backup folder is located where? | pewterbot9 | enTourage Archive | 1 | 12-30-2010 03:16 PM |