View Single Post
Old 07-14-2013, 09:40 AM   #89
kaleissin
Connoisseur
kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.kaleissin ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 623136
Join Date: Jan 2011
Location: Norway
Device: Kindle Keyboard Wi-Fi, Kobo Glo
Quote:
Originally Posted by BetterRed View Post
One drawback with symlinks is - if the target path changes then the link is broken - I don't know of anything that will jump in and repair the link for you. There are utilities that will find and report broken links and others that will allow you to define a new target to effect a repair.
Use hardlinks, when possible (on the same partition, that is). When renaming an author or book, calibre could:

1) Make new dir
2) Hardlink file, which now exists simultaneously in two places
3) Delete original dir

If you want to have the same book in two places, do the same: make a hardlink to the book from the new, better place (on the same partition). Even better: use inotify to automatically create the hardlinks whenever something changes in the calibre dir.

Now of course, your OS might not have either hardlinks or inotify, but that's what I would do if I did care about the looks of the database.
kaleissin is offline   Reply With Quote