Results 1 to 7 of 7

Thread: amrecover problem on Windows

  1. #1

    Default amrecover problem on Windows

    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 @DEFAULT_TAPE_DEVICE@ 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 @DEFAULT_TAPE_DEVICE@ 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

  2. #2

    Default

    Please check /bin/tar.exe exists on your Windows client.

    Did you upgrade or re-install the client?

    Paddy
    [URL=http://amanda.zmanda.com/]Amanda backup and recovery [/URL]
    [URL=http://www.zmanda.com/backup-mysql.html]MySQL backup and recovery[/URL]

  3. #3

    Default

    Quote Originally Posted by paddy View Post
    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.

  4. #4

    Default

    Please check if there is a link from /bin/tar to /bin/tar.exe

    Paddy
    [URL=http://amanda.zmanda.com/]Amanda backup and recovery [/URL]
    [URL=http://www.zmanda.com/backup-mysql.html]MySQL backup and recovery[/URL]

  5. #5

    Default

    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.

  6. #6

    Default

    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:
    Code:
    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:
    Code:
    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:
    Code:
    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

  7. #7

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •