Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-27-2025, 04:02 AM   #1
AnnieQuinn
Connoisseur
AnnieQuinn began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Jan 2024
Location: Vietnam
Device: PC, Kindle ppw5, Boox Go 6
Is there an undo feature?

Hello, I'm not good at digging into the features in Calibre. So, I'd like to ask everyone if there is an "undo" feature for bulk actions? If it exists, please help me.
For example: When editing information of multiple books at the same time, such as adding tags, removing tags.
The reason for this question is because I was planning to remove tag A for the books, but while I was sleepy, I clicked on tag B, because I didn't type the full word but only typed the first character and clicked to select, so I selected the wrong one.
And so, a bunch of books were mistakenly deleted by one tag. And maybe I have to go back to each book to add back the necessary tag that was mistakenly deleted.
Thanks for reading. ^^
AnnieQuinn is offline   Reply With Quote
Old 01-27-2025, 04:16 AM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 7463599
Join Date: Sep 2020
Device: none
In the past I tried the Audit Log plugin just in case I needed to undo bulk (the one time I tried, I couldn't figure how to proceed, or gave up because found another way, perhaps..), but eventually I switched to just doing metadata backups before doing something risky.

And as a rule of thumb I prefer to never do such operations when I'm sleepy ^^

Last edited by Comfy.n; 01-27-2025 at 04:19 AM.
Comfy.n is offline   Reply With Quote
Advert
Old 01-27-2025, 05:16 AM   #3
AnnieQuinn
Connoisseur
AnnieQuinn began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Jan 2024
Location: Vietnam
Device: PC, Kindle ppw5, Boox Go 6
Quote:
Originally Posted by Comfy.n View Post
In the past I tried the Audit Log plugin just in case I needed to undo bulk (the one time I tried, I couldn't figure how to proceed, or gave up because found another way, perhaps..), but eventually I switched to just doing metadata backups before doing something risky.

And as a rule of thumb I prefer to never do such operations when I'm sleepy ^^
Yes, I made a silly mistake. First time stumbling. Hahaa. I wouldn't say I was sleepy, more precisely, I was careless. How annoying, one second mistake, takes a whole day to fix.
AnnieQuinn is offline   Reply With Quote
Old 01-27-2025, 05:18 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,613
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice

@AnnieQuinn - I moved your issue to a separate thread, because it had nothing to do with Templates.


I don't have anything to add to what @Comfy.n posted. I avoid use of 'autocomplete' features - too dangerous for me (broken hands), if I can I turn them off.

BR
BetterRed is offline   Reply With Quote
Old 01-27-2025, 05:41 AM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,646
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Comfy.n View Post
In the past I tried the Audit Log plugin just in case I needed to undo bulk (the one time I tried, I couldn't figure how to proceed, or gave up because found another way, perhaps..), but eventually I switched to just doing metadata backups before doing something risky.

And as a rule of thumb I prefer to never do such operations when I'm sleepy ^^
AFAIK the revert doesn't work because of an error. It also badly bloats the DB.
ownedbycats is offline   Reply With Quote
Advert
Old 01-27-2025, 06:35 AM   #6
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 7463599
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by ownedbycats View Post
AFAIK the revert doesn't work because of an error. It also badly bloats the DB.
I remember I made my mind to uninstall it after you commented something along those lines.

(BTW thanks also for having brought my interest in the template tester, this has encouraged me to try and understand some basics of GPM)
Comfy.n is offline   Reply With Quote
Old 01-27-2025, 05:49 PM   #7
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 7463599
Join Date: Sep 2020
Device: none
This is the script I run on Windows when I sense some imminent risk before bulk library operations:

PHP Code:
 @echo off
 
 Title Calibre Metadata Backup
 
 
echo [93mRunning Calibre Metadata Backup... 
 
@echo 
off

set dt
="%date:~-4,4%-%date:~-7,2%-%date:~-10,2%,%time:~0,2%_%time:~3,2%_%time:~6,2%"
set file=c:\mylib\metadata.db
set target
=%UserProfile%\Documents\metadata-bck.db

copy 
/%file% %target

cd %UserProfile%\Documents 
"c:\Program Files\7-zip\7z.exe" a  -mx=1 metadata-%dt%.7z metadata-bck.db 

del metadata
-bck.db
echo [44mMetadata Backup doneFile is located in %target%.[0m

pause 
Notes:
  • must have 7-zip installed and install path set accordingly. In my Calibre Config backup script, I use Windows built-in tar command, but for some reason I've chosen 7-zip to do metadata.db backups.
  • must change the library path at line "set file=". I suspect that if the library path contains spaces, it should be quoted, but haven't tested.
  • Compression levels may be set to the following:
-mx0 = Don't compress at all - just copy the contents to archive.
-mx1 = Consumes least time, but compression is low.
-mx3 = Better than -mx1.
-mx5 = This is default (compression is normal).
-mx7 = Maximum compression.
-mx9 = Ultra compression.
  • I've set the backup path to Documents because that's a folder I use all the time so i can delete unneeded backups as soon as I spot them.
Attached Files
File Type: bat metadata.db_backup.bat (523 Bytes, 67 views)

Last edited by Comfy.n; 01-27-2025 at 05:52 PM.
Comfy.n is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undo - No undo after bulk replace 1.9.10 BKSteve Sigil 3 07-02-2022 05:55 PM
Undo mrmikel Editor 2 03-06-2014 08:03 AM
Can you undo a delete jgt1942 Library Management 18 06-03-2013 06:06 PM
PRS-T1 undo changes rubentje1991 Sony Reader Dev Corner 9 01-22-2012 12:23 PM
Undo feature Beege Calibre 3 04-25-2009 02:12 PM


All times are GMT -4. The time now is 02:49 AM.


MobileRead.com is a privately owned, operated and funded community.