The amanda movie, part IIIIIIIIIIIIIIIII
amrecover> [root@tux2 backup]# amrecover Daily
AMRECOVER Version 2.4.4p2. Contacting server on tux2.employer.com.br ...
220 tux2 AMANDA index server (2.4.4p2) ready.
200 Access OK
Setting restore date to today (2004-05-28)
200 Working date set to 2004-05-28.
Scanning /dumps/amanda...
200 Config set to Daily.
200 Dump host set to tux2.employer.com.br.
Trying disk /backup ...
$CWD '/backup' is on disk '/backup' mounted at '/backup'.
200 Disk set to /backup.
/backup
amrecover> ls
2004-05-28 .
2004-05-28 bin/
2004-05-28 bkp/
2004-05-28 cafe/
2004-05-28 cafesistemas/
2004-05-28 dev/
2004-05-28 etc/
2004-05-28 lib/
2004-05-28 servdados/
2004-05-28 servdados2/
2004-05-28 servdados3/
2004-05-28 servinter/
2004-05-28 sql_bkp/
amrecover> cd servdados
/backup/servdados
amrecover> ls
2004-05-28 .
2004-05-28 sistemas.tgz
2004-05-28 sistemas.tgz1
amrecover> add sistemas.tgz
Added /servdados/sistemas.tgz
amrecover> extract
Extracting files using tape drive /dev/nst0 on host tux2.employer.com.br.
The following tapes are needed: Employer0
Restoring files into directory /backup
Continue [?/Y/n]? Y
Extracting files using tape drive /dev/nst0 on host tux2.employer.com.br.
Load tape Employer0 now
Continue [?/Y/n/s/t]? Y
EOF, check amidxtaped.<timestamp>.debug file on tux2.employer.com.br.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue [?/Y/n/r]? Y
amrecover>
Amidxtaped Debug file:
amidxtaped: debug 1 pid 4238 ruid 502 euid 502: start at Fri May 28 13:58:22
2004
amidxtaped: version 2.4.4p2
amidxtaped: time 0.000: > SECURITY USER root
amidxtaped: time 0.001: bsd security: remote host tux2.employer.com.br user
root local user amanda
amidxtaped: time 0.001: amandahosts security check passed
amidxtaped: time 0.001: > CONFIG=Daily
amidxtaped: time 0.001: > LABEL=Employer0
amidxtaped: time 0.001: > FSF=1
amidxtaped: time 0.001: > HEADER
amidxtaped: time 0.001: > DEVICE=/dev/nst0
amidxtaped: time 0.001: > HOST=^tux2.employer.com.br$
amidxtaped: time 0.001: > DISK=^/backup$
amidxtaped: time 0.001: > DATESTAMP=20040528
amidxtaped: time 0.001: > END
amidxtaped: time 0.005: amrestore_nargs=0
amidxtaped: time 0.005: Ready to execv amrestore with:
path = /usr/local/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-p"
argv[2] = "-h"
argv[3] = "-l"
argv[4] = "Employer0"
argv[5] = "-f"
argv[6] = "1"
argv[7] = "/dev/nst0"
argv[8] = "^tux2.employer.com.br$"
argv[9] = "^/backup$"
argv[10] = "20040528"
Wrong label: 'EmployerFull0'
amidxtaped: time 50.866: amrestore terminated normally with status: 1
amidxtaped: time 50.866: rewinding tape ...
amidxtaped: time 61.220: done
amidxtaped: time 61.220: pid 4238 finish time Fri May 28 13:59:23 2004
----- Original Message -----
From: "Paul Bijnens" <paul.bijnens AT xplanation DOT com>
To: "Marcelo Leão Caffaro" <leao AT employer.com DOT br>
Cc: <amanda-users AT amanda DOT org>
Sent: Friday, May 28, 2004 11:48 AM
Subject: Re: Amrecover
> Marcelo Leão Caffaro wrote:
>
> > Now i think the problem is other:
> [...]
> > Load tape Employer0 now
> > Continue [?/Y/n/s/t]? Y
> > EOF, check amidxtaped.<timestamp>.debug file on tux2.employer.com.br.
> > amrecover: short block 0 bytes
> > UNKNOWN file
> > amrecover: Can't read file header
>
>
> We're further now. That's already good news.
>
>
> > Below is my amidxtaped debu file:
> [...]
> > amrestore: WARNING: not at start of tape, file numbers will be offset
>
> That was the problem.
>
> Two possible solutions:
>
> 1. Manualy rewind the tape before your read it.
> ( mt -f /dev/nst0 rewind )
> You position it yourself to the correct image with "mt fsf ###",
> if you like.
>
> 2. Since amanda 2.4.4 amanda can do this for you, but you need
> to add these two lines to amanda.conf:
> amrecover_do_fsf yes # this implies a rewind
> amrecover_check_label yes
>
>
> --
> 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 *
> ***********************************************************************
>
|