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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-05-2022, 05:45 AM   #1
KayDav
Member
KayDav began at the beginning.
 
Posts: 16
Karma: 12
Join Date: Jul 2020
Device: Kindle Keyboard, Kobo Touch, Boox Note Air 2
Syncing safely to NAS

I know it is not recommended to keep the Calibre library on a NAS because it may (will?) lead to a corrupt database. I'd like to check whether there are any flaws with the sync/backup plan I have come up with.

I keep my Calibre library on a SD card which usually resides in my laptop. At the moment my NAS software is set to sync the contents of the SD card to the NAS (in one direction from card to NAS, the NAS does not alter the contents of the card). I take the precaution of pausing the sync software whenever I am working in Calibre, then when I have quit Calibre I restart the sync to update the NAS. I also make manual backups by saving books to disc using Calibre.

Does this method avoid the potential database corruption that we are warned of?
KayDav is offline   Reply With Quote
Old 04-05-2022, 05:49 AM   #2
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,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I believe this is actually the usual advice for running Calibre with cloud sync (Dropbox, OneDrive, etc); run the local copy then sync it over. I don't see why it won't work with NAS.
ownedbycats is offline   Reply With Quote
Advert
Old 04-05-2022, 05:52 AM   #3
KayDav
Member
KayDav began at the beginning.
 
Posts: 16
Karma: 12
Join Date: Jul 2020
Device: Kindle Keyboard, Kobo Touch, Boox Note Air 2
Thank you, I was worried that I'd missed a flaw or misunderstood what I'm trying to protect my database from.
KayDav is offline   Reply With Quote
Old 04-05-2022, 09:01 AM   #4
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 835
Karma: 11003000
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, Boox Note Air 2+
Manual sync is not a problem at all (e.g. via Robocopy/rsync etc), only syncing via Onedrive/Gdrive/Dropbox/etc might lead to problems due to file locking etc.

Putting the Calibre library on a NAS might lead to problems if the DB is accessed by multiple users at the same time. It's also not recommended using Calibre and calibre-web on the same DB at the same time.
rantanplan is offline   Reply With Quote
Old 04-05-2022, 09:18 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
OneWay sync (make a shadow copy) is fine to a NAS.

Two way can be a disaster, as there could be a 'race condition', where the DB and the actual book files get out of version order.

NEVER sync with Calibre/Server Running (Library changes won't happen if you are not using it)
I use Free file Sync. It takes ~3 Min to scan for changes and 1 to write the files updated.

FWIW Google drive messes with file names (uses something that looks like what C does for {id} . That = disaster)
theducks is offline   Reply With Quote
Advert
Old 04-05-2022, 01:56 PM   #6
KayDav
Member
KayDav began at the beginning.
 
Posts: 16
Karma: 12
Join Date: Jul 2020
Device: Kindle Keyboard, Kobo Touch, Boox Note Air 2
That's good to know, thank you. I am definitely only doing one-way sync, basically as an automated backup. And have a sticky note on my laptop to remind me to switch sync off while I'm databasing
KayDav is offline   Reply With Quote
Old 04-05-2022, 03:06 PM   #7
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,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by theducks View Post
FWIW Google drive messes with file names (uses something that looks like what C does for {id} . That = disaster)
Specifically, GDrive uses the (#) for their versioning, so it will strip those from the directory names and break Calibre.
ownedbycats 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
How to open a Boox safely Ancestor Onyx Boox 1 08-20-2020 03:13 AM
Safely reversing some changes K4NT mental2k Kindle Developer's Corner 2 06-26-2013 07:48 AM
Safely remove Kindle? thomass Devices 1 08-31-2011 09:51 AM
Content How do I delete my contents safely? jerry2 Amazon Kindle 4 05-05-2011 03:30 PM
how to SAFELY add fonts ? etherspin Bookeen 3 03-16-2009 11:01 AM


All times are GMT -4. The time now is 12:56 AM.


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