Results 1 to 4 of 4

Thread: amrestore problem

  1. #1

    Default amrestore problem

    Hi @all,
    i have a problem with amrestore.

    Now, this is the disklist
    bnr-server /home/amanda/test/ user-tar
    and i will restore a directory on date 20101203172901 via amrestore.

    What is Wrong

    This is the output
    Code:
    amanda@bnr-server:~$ amrestore --config Daily6 bnr-server /home/amanda/test/ 20101203172901
    ERROR: Can't open tape device bnr-server: No such file or directory
    
    amanda@bnr-server:~$ chmod -R 777 /var/lib/amanda/vtapes/Daily6/
    amanda@bnr-server:~$ chown -R amanda:backup /var/lib/amanda/vtapes/Daily6
    
    amanda@bnr-server:~$ amrestore --config Daily6 bnr-server /home/amanda/test/ 20101203172901
    ERROR: Can't open tape device bnr-server: No such file or directory
    
    amanda@bnr-server:~$ amtape Daily6 show
    amtape: scanning all 10 slots in changer:
    slot   9: date 20101203172901 label Daily6-9
    slot  10: date X              label Daily6-10
    slot   1: date X              label Daily6-1
    slot   2: date X              label Daily6-2
    slot   3: date X              label Daily6-3
    slot   4: date X              label Daily6-4
    slot   5: date X              label Daily6-5
    slot   6: date X              label Daily6-6
    slot   7: date X              label Daily6-7
    slot   8: date X              label Daily6-8
    
    amanda@bnr-server:~$ amcheck Daily6
    Amanda Tape Server Host Check
    -----------------------------
    slot 8: volume 'Daily6-8'
    Will write to volume 'Daily6-8' in slot 8.
    NOTE: skipping tape-writable test
    Server check took 1.180 seconds
    
    Amanda Backup Client Hosts Check
    --------------------------------
    Client check: 1 host checked in 7.108 seconds.  0 problems found.
    (brought to you by Amanda 3.2.0)
    
    amanda@bnr-server:~$ amcheckdump Daily6
    You will need the following volume: Daily6-9
    Press enter when ready
    
    Validating image bnr-server:/home/amanda/test/ dumped 20101203172901 level 0
    Reading volume Daily6-9 file 1
    All images successfully validated

  2. #2
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    amrestore require the device name on the command line:
    amrestore --config Daily6 file:/var/lib/amanda/vtapes/Daily6 bnr-server /home/amanda/test/ 20101203172901

    You sould try the amfetchdump command.

  3. #3

    Default

    Thank you,
    i have now another error.
    File 0 !!?

    Code:
    amrestore --config Daily6 file:/usr/local/var/lib/amanda/vtapes/Daily6 bnr-server /home/amanda/test/ 20101213011157
    ERROR: File 0 not found

  4. #4
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    amrestore restore only from the current slot.
    Use 'amtape Daily6 slot ??' so that the current slot is the one you want to restore from.

    or better, use amfetchdump, it do everything for you.
    $ amfetchdump Daily6 bnr-server /home/amanda/test/ 20101213011157

Posting Permissions

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