View Single Post
Old 08-01-2014, 05:07 PM   #18
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: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by chaley View Post
Be careful about hardlinks. They do not make a copy. Instead the same physical file now has two names. If you open one name and change the file then the other sees the changes. If instead one name is deleted and then readded then the link is broken and you now have two copies.

The issue here is metadata.db. Hardlinks won't be broken when calibre opens and writes one of the names.

If I misunderstood what you are saying, sorry about the spam.
This is about an automated backup script, which takes into account things like needing to change the latest version of files. The backup folders are hardlinked to each other, but not to the "real" files. See: rsync manpages, the --link-dest switch. (not "cp -al")
eschwartz is offline   Reply With Quote