Amanda-Users

Re: DAMN! AN AMRECOVER DELETED ALL MY /ROOT CONTENTS!!!

2003-09-22 16:16:50
Subject: Re: DAMN! AN AMRECOVER DELETED ALL MY /ROOT CONTENTS!!!
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Bruno Negrão <bnegrao-amanda AT engepel.com DOT br>
Date: Mon, 22 Sep 2003 22:12:56 +0200
Bruno Negrão wrote:
> Jesus how could this happen!! I was going to recover the /usr/local
> directory that i backup up earlier. I forgot to move to a new empty
> test directory and I issued the extract command on my /root
> directory. For my despair, before the tar begins to extract the
> backup files, it simply deleted ALL /root contents, and did it
> without issuing any question!! AAAAHHHHHHH HELP!!! HEELLLPPPPP!!!!
>
> How can amanda function this way? why doesn´t it simply overwrite the
>  existing files, as is the common "tar -xtvz" behaviour.

You asked it to restore the directory "."; tar just does as you
instructed (btw, it's tar, not amanda!).
If you asked it to restore the files/dirs "*", then it would just
overwrite the files (and directories).

> On the amrecover manual there isn´t a warning like "DANGER: THE
> RESTORING PROCESS CAN ALSO DELETE ALL YOU FILES..."

Only the ones that you asked :-)
But you have them on backup, haven't you?

--
Paul