Results 1 to 3 of 3

Thread: restore to original locations with amrestore

  1. #1

    Post restore to original locations with amrestore

    hello amanda forums

    I am certainly liking the new amanda server I just built! However one minor annoying issue that I am having with it is that when I do a restore it puts all the files into /root rather than the original location. i.e. when I restore /etc/fstab it doesn't replace that file but puts it in root leaving you to move it yourself. I suppose this is a safety feature. But I am confident enough in my abilities in using amanda at this point that I think I would like to restore files to their original location.

    [root@VIRTCENT08:~] #amrecover SNJH -s amanda
    AMRECOVER Version 3.2.1. Contacting server on amanda ...
    220 amanda AMANDA index server (3.2.1) ready.
    Setting restore date to today (2011-01-08)
    200 Working date set to 2011-01-08.
    200 Config set to SNJH.
    501 Host VIRTCENT08 is not in your disklist.
    Trying host ...
    200 Dump host set to
    Use the setdisk command to choose dump disk to recover
    amrecover> setdevice changer
    Using tape "changer".
    Tape server unspecified, assumed to be amanda.
    amrecover> setdisk /etc
    200 Disk set to /etc.
    amrecover> add fstab
    Added file /fstab
    amrecover> extract
    Extracting files using tape drive changer on host amanda.
    The following tapes are needed: SNJH-043
    Extracting files using tape drive changer on host amanda.
    Load tape SNJH-043 now
    Continue [?/Y/n/s/d]? Y
    Restoring files into directory /root
    All existing files in /root can be deleted
    Continue [?/Y/n]? Y
    amrecover> quit
    200 Good bye.
    [root@VIRTCENT08:~] #cd /root
    [root@VIRTCENT08:~] #ls -l
    total 108
    -rw------- 1 root root  1250 Jan  7 23:49 anaconda-ks.cfg
    -rw-r--r-- 1 root root 32344 Jan  8 09:18 foo
    -rw-r--r-- 1 root root   989 Dec 29 19:11 fstab
    drwxr-xr-x 4 root root  4096 Dec 11 12:30 httpd
    -rw-r--r-- 1 root root 23973 Jan  7 23:49 install.log
    -rw-r--r-- 1 root root  4692 Jan  7 23:48 install.log.syslog
    -rw-r--r-- 1 root root  9190 Nov 25 21:41 ldap.conf
    -rw-r--r-- 1 root root  1727 Dec  4 20:03 nsswitch.conf
    drwxr-xr-x 2 root root  4096 Jan  3 22:46 ssh
    thanks in advance!

  2. #2
    Join Date
    Nov 2005


    The file are recovered in the directory amrecover was executed, as files can be removed, it is always safer to do it in an empty directory.

  3. #3
    Join Date
    Aug 2018


    Our antivirus support professionals are very experienced for installing Webroot Antivirus into the computer without any error. Our toll-free Webroot Antivirus Support Number +1-888-994-0291 provides the excellent options for online customers for any difficulty.

Tags for this Thread

Posting Permissions

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