Amanda-Users

Re: accidentally deleted amanda.conf

2005-11-15 11:46:03
Subject: Re: accidentally deleted amanda.conf
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: "jkonecn AT green-mfg DOT com" <jkonecn AT green-mfg DOT com>
Date: Tue, 15 Nov 2005 17:31:08 +0100
jkonecn AT green-mfg DOT com wrote:
Can someone help me out on how to restore
amanda.conf from tape?  I can't see any way to do it.


Basically: on the amanda server


$ cd /tmp
$ mkdir restore-tmp; cd restore-tmp
     # we restore in a safe place so that we don't overwrite
     # anyting useful

$ su            # we need to be root to restore

        # now insert the correct tape (you do have tapelabel?)
        # with a recent level 0 (or some incremental if you
        # know it is there)
        # if not look through the mail reports to find
        # a recent level 0 of the "server /disk/entry"
        # You may also zgrep the index-files manually.

# mt -t /dev/st0 rewind         # each time you make a mistake in
                                # next (two) commands:-)

        # eventually do "mt fsf ..." to speed up the restore

# amrestore -p /dev/nst0 servername '/disk/list/entry$'  |
         gtar -xpvf - ./path/to/amanda.conf


        # Note that the disklistentry is a pattern, not a string
        # use "restore" instead of gtar if you make backups with dump


--
Paul Bijnens, Xplanation                            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          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>