PDA

View Full Version : amrecover problem on Windows



rutherford
December 5th, 2007, 07:46 AM
I have amanda running on a windows 2003 server (DC) to backup data on a secondary drive. Yesterday the drive went down. I replaced it and am having problems getting amrecover to run. if I run it from the start menu, a command window pops up and asks "Enter the password for amadaroot:" then disappears before I can type it in.

I have also tried to restore it from the amanda server (Debian Etch). I backup to disk and have the disk loaded. I can run amrecover and everything goes smoothly till i try to extract.

amrecover weeklyfull
amrecover>sethost joker
amrecover>setdisk /cygdrive/e/lview
amrecover>add *
amrecover>extract

Extracting files using tape drive @[email protected] on host localhost.
The following tapes are needed: weekly-1

Restoring files into directory /opt/amanda-restore
Continue [?/Y/n]? y

Extracting files using tape drive @[email protected] on host localhost.
Load tape weekly-1 now
Continue [?/Y/n/s/t]? y
warning: restore program for /bin/tar.exe not available.
amrecover couldn't exec: No such file or directory
problem executing restore
Extractor child exited with status 1

I would be happy for a solution to either problem.
thanks

paddy
December 5th, 2007, 10:14 AM
Please check /bin/tar.exe exists on your Windows client.

Did you upgrade or re-install the client?

Paddy

rutherford
December 5th, 2007, 12:24 PM
Please check /bin/tar.exe exists on your Windows client.

It does exist. It was installed when i installed the amanda package


Did you upgrade or re-install the client?

No, this was a clean installation of 2.5.2p1 on this machine

I was able to get my data back off of the server by using amrestore to pull the backup off of the vtape and then used tar to extract it but would like to get the client working. I have another machine running Windows 2000 server and have the same problem if I try to start amrecover.

paddy
December 5th, 2007, 12:37 PM
Please check if there is a link from /bin/tar to /bin/tar.exe

Paddy

rutherford
December 5th, 2007, 01:08 PM
On the client?
There is a /bin/tar.exe within the cygwin environment but not a /bin/tar

The /bin/tar.exe error that I was getting was on the server (linux) not on the client. The client problem is that amrecover doesn't open.

andy2209
December 17th, 2007, 02:14 AM
Is there a solution for this behaviour? (using native linux amrecover)

My setup backup clients using amandad on unix, amandad on windows (cygwin based client out of zmanda MSI package) and smbclient, too.
Unix and smbclient can be restored using amrecover on backup host with success - just cygwin based backups fails.
Backups are done to disk using vtape and cloned twice to physical tapes using dd.

A chunked tape header looks for unix clients like this:

AMANDA: SPLIT_FILE 20071201105416 xxxxxxxxx.xxx.xxxxxx.xx /boot part 1/1 lev 0 comp .gz program /bin/tar
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /usr/bin/gzip -dc | /bin/tar -f... -

A chunked tape header looks for windows clients like this:

AMANDA: SPLIT_FILE 20071201105416 xxxxxxxxx.xxx.xxxxxx.xx /cygdrive/g part 1/1 lev 0 comp .gz program /bin/tar.exe
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /usr/bin/gzip -dc | /bin/tar.exe -xpGf - ...

In case of submitting the "extract" command i do recieve this:

warning: restore program for /bin/tar.exe not available.
amrecover couldn't exec: No such file or directory
problem executing restore
Extractor child exited with status 1

Using top or ps command i could see a running gzip process without a tar pipe.

First i've created a symlink for /bin/tar -> /bin/tar.exe without success, also hardlinking fails.

Then i've created a dummy perl script as /bin/tar.exe which connect STDIN to /bin/tar AND writes a timestamp each time called - but it's very strange, because it's never get called - so i would assume the real problem is something different as just couldn't find /bin/tar.exe.

Using the recommended restore command manually just works as expected.

Andy

ddt999
February 8th, 2010, 08:43 PM
I have been using the self-compiled Amanda Cygwin Client 2.5.2p1 on Windows 2000, and the header of the tape looks different:

AMANDA: FILE 20100205101918 xxx /cygdrive/e/xxx/xxxxxxxx lev 1 comp .gz program /usr/bin/tar
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /usr/bin/gzip -dc | /usr/bin/tar -xpGf - ...

Note the "/usr/bin/tar", instead of "/bin/tar.exe". I have no problem recovering from the tape.