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 08-26-2014, 10:13 PM   #31
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 BetterRed View Post
Normal behaviour is that deleting a 'hardlink' (i-node) doesn't delete the 'file' (datastream) unless its the last i-node to the datastream in question.

I'm not sure about e..z's suggested usage of hardlinks and rsynch, maybe he can tell us if there are circumstances that the scripts do delete all the hard links for a given datastream.

BR
Hardlinks point to inodes. The inode is the datastream.

The only ways to delete all hardlinks that point to an inode (at least, all the ways I know of) are to either use something like:
"ls -li" to find the inode and "find -inum $inode | xargs rm" to remove it
or the simpler
Code:
find -samefile $file | xargs rm
Either way, yeah. You have to be fairly determined to delete all hardlinks to an inode, because by definition they exist to preserve the datastream unless you specifically delete all locations. If it was acceptable to delete it in one location and break all the other links, we would use soft/symlinks.

Quote:
Originally Posted by Inferno View Post
Am I mistaken that if I delete the file the link points to it is gone? In the backup as well? or am I missing something?
Hardlinks ensure that if you delete the file, it is still in the other location. Additionally, we do not ever hardlink a backup to your main copy. If we did, then any edits you made would change the inode which is hardlinked from the backup too. That would be bad, since the backup is supposed to show what it used to look like, so... we do not hardlink to the main files, only between the backups themselves.
eschwartz is offline   Reply With Quote
Old 08-27-2014, 12:30 AM   #32
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
So what if I change the file? Is the original file backed up??
Inferno is offline   Reply With Quote
Advert
Old 08-27-2014, 12:45 AM   #33
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 Inferno View Post
So what if I change the file? Is the original file backed up??
Yes, even if you change the main file, the backup still contains the pristine original. (Well, the original file from whichever datetime it was backed up.)
eschwartz is offline   Reply With Quote
Old 08-27-2014, 05:35 PM   #34
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
Quote:
Originally Posted by eschwartz View Post
Yes, even if you change the main file, the backup still contains the pristine original. (Well, the original file from whichever datetime it was backed up.)

Humm. I guess that means something is running to backup the file that "was" a link until I change it.

So if the backup program crashes or is stopped and I change a file then it is gone right?
Inferno is offline   Reply With Quote
Old 08-27-2014, 08:44 PM   #35
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 Inferno View Post
Humm. I guess that means something is running to backup the file that "was" a link until I change it.

So if the backup program crashes or is stopped and I change a file then it is gone right?
There is no constantly running program. There is just a file.

There is one file or set of files, the main ones.

In a second location, a standard file copy creates a backup.
In a third location, a second standard copy is created, but linked to the second location (first copy).

Editing the backup (second or third location) will mess up the other backups regardless of when or why or how.

Editing the main files (first location) will never under any circumstances affect the backup (second or third location).
What it will do, is make any future backups use the new data, and create intra-backup hardlinks only for the identical files.

Hardlinks are a confusing and arcane subject . Perhaps this can clarify them for you?

http://www.mikerubel.org/computers/r...s/#Incremental

Why editing the backups is bad, and how to avoid it.
http://www.mikerubel.org/computers/r...hots/#ReadOnly
eschwartz is offline   Reply With Quote
Advert
Old 10-02-2014, 03:58 AM   #36
dagdrivaren
Junior Member
dagdrivaren began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: none
Do you use a custom column for this like the manual shows? Is it preferable? Perhaps even necessary?
dagdrivaren is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help organizing library Purple5262 Kindle Fire 5 05-12-2012 10:45 PM
Organizing your library outlander78 Which one should I buy? 22 07-04-2011 09:45 AM
Organizing my library Seanette Calibre 10 11-26-2010 04:47 PM
Classic Trouble Organizing my Library Jennos Barnes & Noble NOOK 4 05-31-2010 09:40 AM
Organizing my library crackhammer Calibre 8 09-22-2009 05:17 PM


All times are GMT -4. The time now is 02:33 AM.


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