On Fri, Nov 01, 2002 at 01:25:00PM -0500, Galen Johnson wrote:
> Joshua Baker-LePain wrote:
> 
> >On Fri, 1 Nov 2002 at 12:35pm, Galen Johnson wrote
> >
> > 
> >
> >>I also have an issue with recover in that it deletes files when the 
> >>incremental is restored.  I can almost understand why.  It seems that if 
> >>the files aren't included in the incremental (and they won't be if they 
> >>haven't changed) the tar command seems to assume that the files have 
> >>been removed and deletes them to have the directory appear to be in the 
> >>"same state" as it thinks it was.  Anyone else run into this?  Is there 
> >>some subtle configuration I'm missing?
> >>   
> >>
> >
> >Not that I'm aware of, but this is why I always amrecover into a temporary 
> >space, and then move over the files I really wanted to recover.  Similarly 
> >for smb restores.
> >
> > 
> >
> This is what I am currently doing....but it requires that I put in a 
> full then the incremental...and when I do that it deletes files.

When using amrecover you set a date so as to recover "as of that date".
If the file existed before that set date, but not on that date, then the
file should not be "recovered".  You might need to set an earlier date.

If the set date is one of an incremental, then the file might first be
recovered from an earlier tape of a full dump.  Then if the file was
changed in the incremental backup, it would be replaced with the later
version.  Deletion is just another form of "a change to a file".

Like Joshua, I never recover into anything except an empty directory.

-- 
Jon H. LaBadie                  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

Reply via email to