From: john s. <js9...@ya...> - 2002-05-31 22:10:31
|
> > > tarExtract: Got unknown type 1 for > some/file/name > > > > An initial fix will be to simply copy the file, > and it will be > > correctly replaced with a hardlink. A much better > fix will be > > to immediately make the hardlink, but that will > take some extra > > changes to BackupPC_link and > BackupPC::Lib::LinkNewFile(), since > > they ignore files that already have multiple > links. > > > > I'll should be able to send a patch in approx 24 > hours that should > > fix the problem. > > Here's the patch. Just add the indicated lines to > BackupPC_tarExtract. > This fix is not ideal. A better fix involves a few > more changes. > Also, BackupPC_tarCreate needs to re-create > hardlinks too so that > restore recovers the hardlinks. These things will > be fixed properly > in the next version. > > Please tell me if this works. > > Craig > The patch worked! I tested on a small directory that I create to test with and it worked. I'll try a full back up later tonight, it takes a few hours to run a full backup, so I won't know until tomorrow if it worked 100%. I would like to see a hard link replaced by a hard link instead of individual files, but only if one of the original files already existed. That will be an interesting programming feat. Thanks. __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |