If I do amrecover on the command line,
# amrecover
AMRECOVER Version 2.4.2p2. Contacting server on mybackup ...
220 mybackup AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2001-01-01)
200 Working date set to 2001-01-01.
200 Working date set to 2001-01-01.
amrecover: Unexpected server end of file
#
Amanda complains of "amrecover: Unexpected server end of file" My amanda tape server
is mybackup server 10.1.1.10. I want to restore a file from its /var backup. If I do
this
# amrecover -C Daily
AMRECOVER Version 2.4.2p2. Contacting server on
mybackup ...
220 mybackup AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2001-01-01)
200 Working date set to 2001-01-01.
200 Config set to Daily.
501 No index records for host: mybackup. Invalid?
Trying mybackup ...
501 No index records for host: mybackup. Invalid?
Trying localhost ...
501 No index records for host: localhost. Invalid?
amrecover> sethost 10.1.1.10
200 Dump host set to 10.1.1.10.
amrecover> setdisk /var
Scanning /dumps/amanda...
200 Disk set to /var.
No index records for disk for specified date
If date correct, notify system administrator
amrecover> history
200- Dump history for config "Daily" host "10.1.1.10"
disk "/var"
201- 2001-01-01 0 DailySet10 1
200 Dump history for config "Daily" host "10.1.1.10"
disk "/var"
amrecover>
I know the dumps are working for /var. I get a successful backup email and amadmin
works too except for amrecover. Weird huh? My /etc/hosts file is correct. I have index
generation enabled too and there are files created in my index dir.
I also know daemons and hosts file are ok
# more /etc/hosts
127.0.0.1 mybackup localhost
10.1.1.10 mybackup.test.com mybackup
#more /home/amanda/.amandahosts
mybackup amanda
mybackup root
mybackup.test.com amanda
mybackup.test.com root
10.1.1.10 amanda
10.1.1.10 root
Thourgh the includedir /etc/xinetd.d directive, the 3 services also work
::::::::::::::
amanda
::::::::::::::
service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user =amanda
group =disk
server =/usr/local/libexec/amandad
disable =no
}
::::::::::::::
amandaidx
::::::::::::::
service amandaidx
{
socket_type = stream
protocol = tcp
wait = no
user =root
groups =yes
server =/usr/local/libexec/amindexd
}
::::::::::::::
amidxtape
::::::::::::::
service amidxtape
{
socket_type = stream
protocol = tcp
wait = no
user = root
groups = yes
server =
/usr/local/libexec/amidxtaped
server_args = amidxtaped
}
The xinetd /var/log/messages confirm that xinet serves
the four processes just fine
mybackup xinetd[11344]: xinetd Version 2.1
mybackup xinetd[11344]: libwrap
mybackup xinetd[11344]: options compiled in.
mybackup xinetd[11344]: Started working: 3 available services
mybackup xinetd: xinetd startup succeeded
I also have the correct entries in /etc/services
amanda 10080/udp #amanda backup services
kamanda 10081/tcp #amanda backup services(Kerberos)
kamanda 10081/udp #amanda backup services (Kerberos)
amandaidx 10082/tcp #amanda backup services
amidxtape 10083/tcp #amanda backup services
My /etc/hosts.allow has all:all
Here is my amanda.conf and my disklist
-----------------------------------------------------
define dumptype global {
index yes
}
define dumptype myvartest {
comment "/var directory"
compress client best
holdingdisk yes
index yes
}
As for the disklist,
#more disklist
10.1.1.10 /var myvartest
The backups work, but restores using amrecover don't. What could be wrong?
Thanks.
Free, secure Web-based email, now OpenPGP compliant - www.hushmail.com