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-22-2015, 05:05 PM   #1
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Is there a way to "sync" two libraries?

I've been wondering what is the best way to have a duplicate library on my external drive for backup purposes.

I have never used any incremental backup for my calibre libraries but find that my library is too large to routinely use a complete backup now.

My current method has been to copy the library to the external but it takes too long to do it completely to be good for daily or even weekly backup. As staying away from the file structure is ingrained as a "no no" I wondered how people handle doing this.

Suggestions are welcome.
LadyKate is offline   Reply With Quote
Old 01-22-2015, 06:52 PM   #2
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@LadyKate - quite a few folks here use Free File Synch in mirror mode. I use a similar program Goodsynch, at the time of selecting it FFS was in its infancy.

I normally run it at shutdown, takes a few minutes to sync my data drive: Calibre Libraries, Documents, Pictures, Music etc, plus the calibre, Handbrake, Irfanview etc folders in %APPDATA%\ etc.

BR
BetterRed is offline   Reply With Quote
Advert
Old 01-23-2015, 01:32 AM   #3
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
That sounds like an option. Is the backup library totally usable?

I wonder if perhaps in the future we might see a "sinc library" feature.
LadyKate is offline   Reply With Quote
Old 01-23-2015, 04:07 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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by LadyKate View Post
That sounds like an option. Is the backup library totally usable?

I wonder if perhaps in the future we might see a "sinc library" feature.
@LadyKate - yep, you can point calibre at the mirrored library folder. There's no packaging into something obscure - the backup mirror looks exactly like the source.

Speaking for myself I'd never use an application specific backup feature. I prefer to have one process using one backup application for all my data; ebooks, photos, music, investment portfolio, tax records, correspondence... et cetera.

BR
BetterRed is offline   Reply With Quote
Old 04-28-2015, 01:54 PM   #5
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
I'm curious, does the backup work properly if the calibre library is open when the backup occurs?
LadyKate is offline   Reply With Quote
Advert
Old 04-28-2015, 02:29 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, if calibre is busy moving files around, the backup might catch the library halfway through, and have some files in the wrong place.

It depends on what sync application you use.
FreeFileSync (Windows) in Admin mode can use Volume Shadow Copy I believe to get a view of the filesystem at a single moment in time, then make a copy of that.
On linux, you can use an LVM snapshot to do much the same thing.


calibre performs all file writes in an atomic fashion, so you shouldn't get corrupted files.


I still wouldn't risk it, either way. I prefer scripting the backup to happen automatically after calibre closes, and locking calibre from opening while it is running.

Last edited by eschwartz; 04-28-2015 at 02:33 PM.
eschwartz is offline   Reply With Quote
Old 04-28-2015, 04:35 PM   #7
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by eschwartz View Post
I still wouldn't risk it, either way. I prefer scripting the backup to happen automatically after calibre closes, and locking calibre from opening while it is running.


Calibre might also be 'lazy' writing opf files as a result of a bulk change

Quote:
Originally Posted by LadyKate View Post
I'm curious, does the backup work properly if the calibre library is open when the backup occurs?
@LadyKate - I run the backup at shutdown. First step is to run calibre --shutdown-running-calibre, then run calibredb backup_metadata against each library (to flush pending opf writes), and then it does the incremental backup using GoodSych (similar to Free File Sync).

Rarely takes more than 15 minutes, and that includes all my data, and 'critical' control data such as windows registry, calibre config, firefox profiles etc.

I also run the 'job' manually before allowing Windows Update to do its stuff.

BR
BetterRed is offline   Reply With Quote
Old 04-28-2015, 06:26 PM   #8
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Ok, I shut down calibre before doing a mirror backup of my library directory but find I have a directory RecycleBin.ffs_tmp for some reason that I can't figure out the reason for.

Other than that it appears I have a duplicate directory of my library with the one additional directory.

Thank you for your help.
LadyKate is offline   Reply With Quote
Old 04-28-2015, 07:48 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Whatever it is, it is probably something to do with FFS itself, based on the directory name.
eschwartz is offline   Reply With Quote
Old 04-28-2015, 08:14 PM   #10
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Quote:
Originally Posted by LadyKate View Post
Ok, I shut down calibre before doing a mirror backup of my library directory but find I have a directory RecycleBin.ffs_tmp for some reason that I can't figure out the reason for.

Other than that it appears I have a duplicate directory of my library with the one additional directory.

Thank you for your help.
If you have files going to the Recycle Bin in the FFS synchronization settings RecycleBin.ffs_tmp is created. It is normally deleted at the end of the session but may stay if there is some reason such as a file in it that is in use in another application.

Its non deletion is of no consequence and should just disappear next time you run FFS.
AnotherCat is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
1 common library with multiple sub-libraries in different "root" folders uiuiii Library Management 8 09-19-2014 11:22 AM
Question: addition of "virtual libraries" (was "base search restriction") chaley Library Management 53 04-15-2013 12:52 PM
"Distance" digital media libraries 1611mac General Discussions 3 03-12-2011 11:32 AM
Confusion about "Save to Disk" and Calibre libraries? jesscat Calibre 10 03-22-2010 01:04 PM


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


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