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.
Code:
[[email protected]:~] #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 VIRTCENT08.summitnjhome.com ...
200 Dump host set to VIRTCENT08.summitnjhome.com.
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
./fstab
amrecover> quit
200 Good bye.
Code:
[[email protected]:~] #cd /root
[[email protected]:~] #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!