![]() |
#1 |
Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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.
![]() |
![]() |
![]() |
![]() |
#4 |
Weirdo
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() 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
![]() |
![]() |
![]() |
![]() |
#7 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |