Amanda-Users

Re: amanda deleting files while restoring !

2006-04-04 00:19:56
Subject: Re: amanda deleting files while restoring !
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 4 Apr 2006 00:12:18 -0400
On Mon, Apr 03, 2006 at 08:34:37PM -0400, Guy Dallaire wrote:
> 2006/4/3, Jon LaBadie <jon AT jgcomp DOT com>:
> >
> > FMI:
> > did you attempt to recover specific files, specific directories,
> > or the entire DLE root?
> >
> 
> That was a subdir of the DLE, I decided to restore the whole
> subdirectory and all the files and dir beneath it, as it was almost
> completely destroyed.
> 

I was hoping that was the case and that you weren't restoring specific files.
Amanda, at least with gnutar, restores to the state "as of a specified date".
For a file, this is easy to visualize, what ever were the contents of that
file.  In this case the "file" was a directory and it was being restored to
the state it was on the specified date.  So files now missing had to be
restored, files different had to be changed, and files not present then
had to be deleted.

> I now realize that I taught amanda would restore WITHOUT DELETING or
> overwriting files, which is not the case. I mean, I realize that if a
> file had been modified this morning in that directory, the restore
> would have restored an older version of the file...
> 
> It would be fun to have an option to overwrite "only if newer" or to
> prevent deleting. I don't know if gnu tar has such options. But it
> would be nice. That's the kind of thing that would be nice to have in
> a GUI.

If gnutar has such extract options, perhaps you might want to submit
an RFE.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)