Amanda-Users

Re: amanda deleting files while restoring !

2006-04-04 03:29:12
Subject: Re: amanda deleting files while restoring !
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 04 Apr 2006 09:22:21 +0200
On 2006-04-04 06:12, Jon LaBadie wrote:
On Mon, Apr 03, 2006 at 08:34:37PM -0400, Guy Dallaire wrote:

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...

I wouldn't expect anything other.



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.

But modifying amrecover to omit "." from the expansion of "*", just
as the shell, would already be a lot better.



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

And optionally add the gnutar flags:

  --keep-old-files    don't replace existing files when extracting
  --keep-newer-files  don't replace existing files that are newer than
                      their archive copies



--
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************