Re: Hard links and mondoresecue

Bruno Cornec <[email protected]>
Newsgroups gmane.linux.mondo.devel
Message-ID <[email protected]>
Hello Robert,

Pollina, Robert said on Fri, Dec 09, 2016 at 02:20:15PM +0000:
>We’ve been using mondo for some time and I’m just realizing that it does not handle hardlinks very well.  From testing the afio command (using the mondoarchive/restore commands), I have OBERSERVED that If you have two directories with the second one that essentially has hardlinks back to all the files in the first:
>So, the afio commands preserve hard links; however, when I use mondoresecue, both the original file and linked file are full copies:
>There appears to be two main issues:
>
>1.       Although afio does handle hardlinks correctly, given that afio is called for many times, with a subset (fileset) of files, it can only deal with hardlinks within the fileset.
>2.       The processing of big files is processed file-by-file and therefore does not deal with hardlinks across multiple files.
>
>This is not only a restore concern (mondorestore) but also a backup concern (mondoarchive) as the backups created can be much larger than required -- this is actually how I first noticed this issue.

I agree with your analysis :-(

>Has this been reported before?  Is this a known issue?  I did use Google; however, there really was not much around this issue.

It's now reported as http://trac.mondorescue.org/ticket/807
I' ve no idea yet on how I'll fix that one however. It would require changing the way mondoarchive performs the analysis and store more information than now to handle tat case correctly, especially providing what is needed at restore time to recreate the hard links the correct way. Pretty tough one to solve :-(

Bruno.
-- 
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.