![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,270
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
EDIT: See the first post for the newest version of the plugin. Last edited by chaley; 02-04-2025 at 05:33 PM. |
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,144
Karma: 78857258
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Looks good to me
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 825
Karma: 409968
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 3367292
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Just gave it a try on my Linux installation...works fine!
|
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,270
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
FWIW: on Windows the program WinMerge shows you the difference between files in the .zips without unpacking them first. It does the unpack internally. It also shows differences between the "real" config folder and one of the zips. It works very well on my Win11 machine.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,546
Karma: 7463599
Join Date: Sep 2020
Device: none
|
I found that it's possible to leave the second field blank, so I'm grouping them in my original backup folder:
At the moment I'm thinking this will create more backups than I need, as I do quite frequent Calibre restarts. Perhaps a GUI button to run it on demand would be the best solution for my case but I'm aware of the risks of creating a config backup while Calibre is running. (yet I've never had issues after restoring backups made with the script I run, which most times I do with Calibre running ![]() |
![]() |
![]() |
![]() |
#22 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,506
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Works fine on latest Windows Portable preview, and on my installed 7.24.
My request wasn't intended for my use, the folder is in my end-of-day backup. It was to have something I could suggest others might want to use. But I'm going to keep it, there have been occasions where I've done an ad-hoc backup of my config, now all I have to do is restart calibre. But, there's always a but… In fact there's two: 1. should the number of backups stored be limited in some way? My preference would be N days. 2. How would the user restore a backed up configuration? BR |
![]() |
![]() |
![]() |
#23 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,536
Karma: 165170836
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I would vote for a limit on the number of backups, i.e. keep last N backups.
Extract it back to the configuration folder without calibre running? |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,270
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
It seems that this plugin will be used so I added the appropriate first post to add it to the plugin index.
As for how many backups to keep, this is made a bit complicated by the fact that other files can exist in the backup folder. I can't scan for a certain time and delete if older. I can work around this by keeping a list of backups, but this suffers from itself being a config preference. If a config is restored the preference will be as well, probably orphaning some files. The user will be required to look and clean from time to time. I will add two configuration lines:
And yes, to restore a backup, close calibre then extract the zip file into the configuration folder. To be the most safe, rename the config folder, create a new one, then extract the zip. This ensures that no "extra" config files are left over. This "restore" can't safely be done inside calibre. Calibre will save config information using in-memory values. Changes made to config files will be lost in this case. Last edited by chaley; 02-04-2025 at 05:36 PM. |
![]() |
![]() |
![]() |
#25 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,506
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
1. A button in the plugin's Config dialogue to open the backup folder - companion to the button to open the config folder in Prefs-Miscellaneous. 2. Put some instructions in the opening post of this thread on how to restore a configuration from a previous backup. Surprisingly little code was needed. BR |
|
![]() |
![]() |
![]() |
#26 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,270
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,270
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
New version available:
|
![]() |
![]() |
![]() |
#28 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,546
Karma: 7463599
Join Date: Sep 2020
Device: none
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#29 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,506
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
FTR: it's everything and more than what I had in mind when I suggested it. ![]() BR |
|
![]() |
![]() |
![]() |
#30 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,270
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
New release 1.0.4:
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
backup function for the configuration folder? | Martin | Calibre | 18 | 08-18-2023 04:03 AM |
Is there a way to backup my settings/configuration? | birkmaggs | Calibre | 8 | 04-21-2023 10:26 PM |
Configuration backup | kshane9 | Library Management | 2 | 11-17-2017 02:11 PM |
Change location of configuration folder | macnab69 | Library Management | 10 | 11-04-2015 09:22 AM |
Local backup folder is located where? | pewterbot9 | enTourage Archive | 1 | 12-30-2010 02:16 PM |