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 12-19-2018, 04:57 AM   #16
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,016
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by BetterRed View Post
However I recall seeing another file sync tool that sprinkled stuff in the directories selected for syncing. So if you mirrored D:\Calibre\Calibre Library to E:\Calibre\Calibre Library, it would write 'control' data into those directories which would generate errors in Check Library. I can't recall if FFS was the culprit or the solution.
The solution, I think. I use FFS to backup my Calibre setup, and I have no issues with Check Library. It puts a lock file in the source directory, but removes it when done.
mbovenka is offline   Reply With Quote
Old 12-19-2018, 07:05 AM   #17
latepaul
Wizard
latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.
 
latepaul's Avatar
 
Posts: 1,264
Karma: 10203040
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
Here's what I would do:
  • Plug the USB drive into the PC with the "master" library.
  • open Calibre portable - sort the library by date (the date added column)
  • make a note of the latest book and the date
  • Use switch/create to switch to the master library by specifying the location on the PC
  • sort by date, select all books newer than the portable library
  • right-click and choose copy to library, choosing the calibre portable library

This assumes the PC copy is always the definitive copy. If you update the metadata on an existing book you could include it by always updating the date field. Or you could use a tag if you want the date field to always mean date added.

If you want to sync the other way - portable -> PC - then you need a way of identifying those changes. Again I'd probably use a tag.

The reason I'd would use this method is that it avoids manipulating files except through the calibre interface. Also, in most cases if you get into the habit of doing it regularly the changes will not be that large.

Oh and another tip - name the directories so that it's obvious what the libraries are ("usb_lib", "PC_lib", "my_lib", "wife_lib" etc)
latepaul is offline   Reply With Quote
Advert
Old 12-19-2018, 07:20 AM   #18
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by BetterRed View Post
@ilovejedd - does FFS write anything to the source and target device, I'm thinking of its version history, logs etc.

Goodsynch writes its stuff to hidden directories at the root of the source and destination devices - i.e out of harms way, and where they can do least harm.

However I recall seeing another file sync tool that sprinkled stuff in the directories selected for syncing. So if you mirrored D:\Calibre\Calibre Library to E:\Calibre\Calibre Library, it would write 'control' data into those directories which would generate errors in Check Library. I can't recall if FFS was the culprit or the solution.
The sync.ffs_db is optional. It's only created if you select certain settings. I think it was if you enable keep track of moved files? In any case, it's just a single file and it'll be in the same location as metadata.db so quite easy to add to exceptions for Check Library.

Logs are stored in the user's AppData folder by default, iirc.

As mentioned, FFS does create a temporary lock file during sync which gets deleted right after.
ilovejedd is offline   Reply With Quote
Old 12-19-2018, 09:22 AM   #19
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: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Extra files generate warning MESSAGES. In this case, they do no harm, do not indicate 'problem' book entries. I even believe there is an option to 'ignore in the future". As ALWAYS: 'Ignores" should be used with KNOWLEDGE and care
theducks is offline   Reply With Quote
Old 12-19-2018, 04:05 PM   #20
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 BetterRed View Post
...However I recall seeing another file sync tool that sprinkled stuff in the directories selected for syncing. So if you mirrored D:\Calibre\Calibre Library to E:\Calibre\Calibre Library, it would write 'control' data into those directories which would generate errors in Check Library. I can't recall if FFS was the culprit or the solution.
The already mentioned file sync.ffs_db gets written into the root of the synchronized library folder by FreeFileSync on both the source and target devices, so is in the same location as metadata.db. Calibre's Library Maintenance shows it as an Invalid Author but if one knows one is using a file sync application it is blindingly obvious what it is. Apart from that Calibre ignores it. If one deletes it the only outcome is that FreeFileSync will just create another next sync session with no issue that I have ever come across (and if there is some sync conflict FreeFileSync will resolve it or ask for guidance).

As already said, one can just tell Calibre Library Maintenance to ignore sync.ffs_db if wanted; I don't bother to do so.

EDIT: in case of confusion (or of a visiting pedant), I should make clear that by "source device" I mean the device that the sync is run from e.g. that which FreeFileSync is running on.

Last edited by AnotherCat; 12-19-2018 at 04:13 PM.
AnotherCat is offline   Reply With Quote
Advert
Old 12-19-2018, 04:50 PM   #21
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: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by mbovenka View Post
The solution, I think. I use FFS to backup my Calibre setup, and I have no issues with Check Library. It puts a lock file in the source directory, but removes it when done.
Thanks

Quote:
Originally Posted by ilovejedd View Post
The sync.ffs_db is optional. It's only created if you select certain settings. I think it was if you enable keep track of moved files? In any case, it's just a single file and it'll be in the same location as metadata.db so quite easy to add to exceptions for Check Library.

Logs are stored in the user's AppData folder by default, iirc.

As mentioned, FFS does create a temporary lock file during sync which gets deleted right after.
That was it. Seeing that file name, and after a sleep, I can recall the details.

A fellow member of the local b&m library reading group was getting IO errors on one of his metadata.db files, another member suggested he delete "the database" and run the Library->Maintenance->Restore database.

He deleted metadata.db and sync.ffs_db. After running the calibre database restore everything was fine with calibre. But when he ran FFS it complained about its missing database. That's when he called me.

He's a law professor, with limited IT knowledge. He wanted the archive/versioning features of FFS for his Documents folder (his calibre libraries are at %appdata%\Calibre\Libraries). After I gave him some choices he opted to switch to Goodsync, which doesn't write in user folders and uses NTFS' VSS feature rather than lock files.

Quote:
Originally Posted by theducks View Post
Extra files generate warning MESSAGES. In this case, they do no harm, do not indicate 'problem' book entries. I even believe there is an option to 'ignore in the future". As ALWAYS: 'Ignores" should be used with KNOWLEDGE and care
Calibre ain't always the only kid on the block. The lawyer thought it better to invest the price of half a bottle of Whisky to keep the backup tool's thumb out of calibre's pie

@AnotherCat - we x-posted

BR

Last edited by BetterRed; 12-19-2018 at 05:26 PM. Reason: ack AC
BetterRed is online now   Reply With Quote
Old 12-19-2018, 06:40 PM   #22
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 BetterRed View Post
...He's a law professor, with limited IT knowledge. He wanted the archive/versioning features of FFS for his Documents folder (his calibre libraries are at %appdata%\Calibre\Libraries). After I gave him some choices he opted to switch to Goodsync, which doesn't write in user folders and uses NTFS' VSS feature rather than lock files.
FreeFileSync has the option of VSS also should one have a need for it.
AnotherCat is offline   Reply With Quote
Old 12-19-2018, 11:47 PM   #23
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: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by AnotherCat View Post
FreeFileSync has the option of VSS also should one have a need for it.
AAMI - would that obviate the need for 'lock' files. IIRC Goodsync touts its use of VSS as the means by which it can backup files that another program has open for write.

BR
BetterRed is online now   Reply With Quote
Old 12-20-2018, 12:13 AM   #24
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 BetterRed View Post
- would that obviate the need for 'lock' files...
I don't use VSS as I never have any files locked when I sync - so I cannot say from experience. But have just checked the FreeFileSync manual and it confirms it copies locked files in the shadowed volume.

As an aside I don't know the reasoning why FreeFileSync places a file in each synced directory (on both devices being sync'd) and never pondered on it before (the files have never bothered me) but one reason may be that it somehow facilitates its avoiding copy/writes when syncing moved files???
AnotherCat is offline   Reply With Quote
Old 12-20-2018, 02:39 AM   #25
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: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by AnotherCat View Post
I don't use VSS as I never have any files locked when I sync - so I cannot say from experience. But have just checked the FreeFileSync manual and it confirms it copies locked files in the shadowed volume.
Likely as not it doesn't need the 'lock' file if its configured to use VSS

Quote:
Originally Posted by AnotherCat View Post
As an aside I don't know the reasoning why FreeFileSync places a file in each synced directory (on both devices being sync'd) and never pondered on it before (the files have never bothered me) but one reason may be that it somehow facilitates its avoiding copy/writes when syncing moved files???
Goodsynch handles most 'moves' like calibre does: creates a hard link in new location and removes the link in old location. The detection happens in its Analyse phase. Its not a 100%, if you rename a file and move it a million miles it will do a copy and delete. But it will detect, and do a hardlink shuffle, if a book in my Intake library gets a new name and then gets moved to my Books library.

My Books and Intake libraries have a common parent, Calibre\Libraries - that may be the limiting factor, if you move a file from one root level directory to another it may not recognise it as a move, in which case it will do a copy and a delete.

It keeps its state and history data in its root level _gsdata_ hidden folders on source and target devices, I've never had a need to delve into them, in recent times they added a GoodSync Explorer program for doing that.

We're having a hailstorm - marble size so far, damn noisy still.

BR

Last edited by BetterRed; 12-20-2018 at 02:46 AM.
BetterRed is online now   Reply With Quote
Old 12-20-2018, 09:52 AM   #26
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by BetterRed View Post
Likely as not it doesn't need the 'lock' file if its configured to use VSS
Note, the purpose of the lock file is to let other FreeFileSync instances know that the directory is currently being modified by FFS. That way, you don't have multiple FFS instances trying to make changes to the same folder at the same time as that can mess up the sync (particularly if doing 2-way). A sync.ffs_lock file is created in the main folder which gets deleted immediately after sync is done.
ilovejedd is offline   Reply With Quote
Old 12-20-2018, 09:59 AM   #27
Rbneader
Fanatic
Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.
 
Posts: 500
Karma: 2661351
Join Date: Mar 2012
Device: None
Going forward, why don't you just use a portable version of Calibre as your master version? Then all you have to do is copy the Calibre folder. It's what I've done for years.
Rbneader is offline   Reply With Quote
Old 12-20-2018, 10:03 AM   #28
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by Rbneader View Post
Going forward, why don't you just use a portable version of Calibre as your master version? Then all you have to do is copy the Calibre folder. It's what I've done for years.
Lol, this is what I do. Makes it much easier to switch computers.
ilovejedd is offline   Reply With Quote
Old 12-20-2018, 10:29 AM   #29
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by AnotherCat View Post
As an aside I don't know the reasoning why FreeFileSync places a file in each synced directory (on both devices being sync'd) and never pondered on it before (the files have never bothered me) but one reason may be that it somehow facilitates its avoiding copy/writes when syncing moved files???
It is precisely for detecting moved files. By default, a "Mirror Sync" doesn't create sync.ffs_db. It's only created when you do a "Two-way Sync" or explicitly enable the "Detect moved files" option when "Versioning".
ilovejedd is offline   Reply With Quote
Old 12-20-2018, 10:46 AM   #30
Rbneader
Fanatic
Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.Rbneader ought to be getting tired of karma fortunes by now.
 
Posts: 500
Karma: 2661351
Join Date: Mar 2012
Device: None
Quote:
Originally Posted by ilovejedd View Post
Lol, this is what I do. Makes it much easier to switch computers.
It really does!

Actually, all my files - books, movies, documents, everything - are on an external hard drive that I can take with me easily. It makes my life a lot easier, especially as onboard storage has gotten smaller in computers.

It also makes doing backups a lot easier; I just sync the contents of my regular drive to my backup drive once a week or so. Dead simple with any file copy software.
Rbneader is offline   Reply With Quote
Reply

Tags
backup, calibre, portable

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping desktop and portable Calibre libraries in sync mdclanahan Calibre 1 10-22-2018 10:49 AM
Synchronising Calibre Portable with desktop version judeandrob Library Management 2 10-16-2012 10:30 AM
Touch Portable Kobo desktop on usb Chocky Kobo Reader 0 09-02-2012 05:37 AM
Newbie Question: Calbre Desktop or Calibre Portable? lorken Calibre 10 02-16-2012 06:10 AM
Puggle Portable Desktop Search (java) curbarthedog iRex 0 04-01-2009 06:28 AM


All times are GMT -4. The time now is 04:35 AM.


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