Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-24-2020, 11:53 PM   #1
ktsl
Junior Member
ktsl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
Backing up the library structure and metadata only (without the book files)?

Is there an option to backup the library metadata database and the library structure (i.e. the folders), without backing up the whole library, i.e. the ebook files themselves? Specifically, backing up the folder structure, the metadata.db, metadata_db_prefs_backup.json, and the .opf files in each folder?

The reason for asking is this: Calibre manages the library by managing those metadata files aforementioned. The actual ebook files themselves (the .epub) are seldomly altered. The danger of a corrupted library lies in the database, not the ebook files. Meanwhile, backing up the whole library folder is quite heavy.
ktsl is offline   Reply With Quote
Old 04-25-2020, 12:38 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 38,164
Karma: 16793319
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre has no backup facility at all. If you want to backup only the db using whatever backup tools you use, feel free, but note that anytime you change the title and author of any entry the file names and folder names will go out of sync with the database. SO only do this if you never intend to edit those two fields.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-25-2020, 07:31 AM   #3
BetterRed
null operator
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: 16,685
Karma: 19705250
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ktsl View Post
... backing up the whole library folder is quite heavy.
Not if you use a file/folder sync tool to mirror the library, after the first backup it only backs up the changed files, plenty to choose from ==>> Comparison of file synchronization software - Wikipedia

FreeFileSync and rsync are popular amongst calibre users, SyncToy too. And a few of us use GoodSync,

BR
BetterRed is online now   Reply With Quote
Old 04-25-2020, 03:51 PM   #4
ktsl
Junior Member
ktsl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
note that anytime you change the title and author of any entry the file names and folder names will go out of sync with the database. SO only do this if you never intend to edit those two fields.[/QUOTE]
That's a good point, and good know. Thanks.

I've put the library in dropbox. (Yes I have read the sticky notes.) So far I've seen two books out of ~500 that have duplicates with "_(case conflict)" at the end of the file names. Upon manually deleting them things seem fine. Are there any other, more serious problems one should expect?
ktsl is offline   Reply With Quote
Old 04-25-2020, 03:55 PM   #5
ktsl
Junior Member
ktsl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
Not if you use a file/folder sync tool to mirror the library, after the first backup it only backs up the changed files, plenty to choose from ==>> Comparison of file synchronization software - Wikipedia

FreeFileSync and rsync are popular amongst calibre users, SyncToy too. And a few of us use GoodSync,

BR
Thank you.

Speaking of which, can I use git to backup calibre library?
ktsl is offline   Reply With Quote
Advert
Old 04-25-2020, 03:57 PM   #6
ktsl
Junior Member
ktsl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by kovidgoyal View Post
note that anytime you change the title and author of any entry the file names and folder names will go out of sync with the database.
That's a good point. It makes little sense to do such a back then.

Just came to my mind, can I use git to back up calibre library? I can gitignore the ebook files - or not, since except the initial commit the updates are lightweight.
ktsl is offline   Reply With Quote
Old 04-26-2020, 12:33 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 38,164
Karma: 16793319
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can use whatever you want to backup a calibre library, just be careful to backup everything in the folder, otherwise your backups will not be directly restorable.
kovidgoyal is offline   Reply With Quote
Old 04-26-2020, 02:35 AM   #8
ktsl
Junior Member
ktsl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by kovidgoyal View Post
You can use whatever you want to backup a calibre library, just be careful to backup everything in the folder, otherwise your backups will not be directly restorable.
Got it. That makes sense.
ktsl is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to copy original book files and their metadata to a new library halloleo Library Management 8 04-16-2020 06:10 AM
Sync only the library and metadata without actual ebook files to Calibra Companion? markus98 Calibre Companion 3 03-09-2020 12:03 PM
Metadata Change->Library Folder Structure? CC-GoE Library Management 9 03-30-2014 05:05 PM
eDGe Library files and backup structure ken_jennings enTourage eDGe 9 07-08-2011 11:16 AM
[old thread] filename and library structure /author and titel structure tscamera Library Management 4 05-31-2011 06:44 PM


All times are GMT -4. The time now is 04:37 PM.


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