![]() |
-=:iNode Locate:=- | ![]() |
||
  |
In the basket of Debian packages I've found a very nice backup solution - BackupPC. It let us to backup 1.5TB from 8 of our PCs including 600GB 90% full RAID using 200GB of the backup RAID space. And that is including 2 or 3 (weekly) full backups and about 4-5 (daily) incremental backups. Isn't that nice? And that was possible due to duplicate information present across different directories/drives/computers + compression. When I've got backuppc working, I've got curious on why do we have
so much of duplicate information? To answer that question I had to
find all the files present on the harddrive which are hardlinks to the
same file, i.e. to the same inode. Doing So I've decided to use existing tool DOWNLOAD: here is the full iupdatedb
script or patch to be applied to
updatedb, and ilocate wrapper around Now we can create a DB ./iupdatedb --localpaths=. --output=locatedb.local and then use ./ilocate 6949126 6949126 cpool/6/9/6/696c5fe46fca94ea5de0395b6adc8a8f 6949126 pc/ravana/10/f%2fraid/fresearch/ffaceprime/ffaceprime.tar 6949126 pc/ravana/3/f%2fraid/fresearch/ffaceprime/ffaceprime.tar real 0m3.680s user 0m2.693s sys 0m0.128sor ./ilocate pc/ravana/10/f%2fraid/fresearch/ffaceprime/ffaceprime.tar to get the same output :-) REMARKS No proper path and DB filename handling in Provided here Comments / suggestions are appreciated. And it is all GPLed so you
can continue 'adjusting' the |
![]() |
||
![]() |
|
![]() |