Amanda-Users

Re: Problems with amrecover and file path

2003-10-14 09:40:20
Subject: Re: Problems with amrecover and file path
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: cdp AT trynix DOT dk, AMANDA Users <amanda-users AT amanda DOT org>
Date: Tue, 14 Oct 2003 15:34:06 +0200
Christoffer Dahl Petersen wrote:


I should recover some files from a directory, but I can't get into the directory. The path is: /home/files/\ \ MAGS/ or "/home/files/ MAGS/", here is what I do:
#amrecover daily
amrecover> setdisk /home/files/\ \ MAGS
Mount point "\" invalid - must start with /
Invalid command - parse error
amrecover>

How can I do that - PLEASE HELP - I'm about to be killed by my boss

First don't panic.  Being killed by your boss is not that bad as it
sounds :-)

Then, yes indeed, amrecover has trouble with spaces (or other strange
chars in the name).

You're also confusing DLE names (setdisk) and subdirectories.


Workaround:

        setdisk /home/files   (or whatever your DLE is named)
        cd *MAGS        (or "??MAGS": use a wildcard as args to cd)

Workaround nr 2:

        amrestore -p ... | tar -xvf - './  MAGS/some/file'

(While panicking, it is maybe wiser to restore into a temporary
empty directory to avoid overwriting critical files.)




--
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, *
* 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>