A few questions about restore


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers A few questions about restore
# 1  
Old 02-08-2010
A few questions about restore

HI ,



Q1) I have been using the interactive menu to restore files but I figure I should learn how to do it by long hand. So if I want to restore the /etc directory from /dev/nst0 is the command syntax:restore -xvf /dev/nst0 /etc

Q3) How do I tell restore to restore a different directory from the one I am in?

Last edited by mojoman; 02-08-2010 at 03:08 PM..
# 2  
Old 02-08-2010
The restore looks suspiciously like an alias to tar in which case you can easily restore the data from the tape to an alternative location if it was not backed specifying the files fully pathed, to check this try:
Code:
tar -tvf /dev/nst0

This will list the files stored in the tape, if the backups are really in tar format.

If the files from /etc are listed as /etc/hosts then they are fully pathed, if they are listed as etc/hosts then they have been stored using absolute paths, if the latter applies you simply cd to an alternate location and run:
Code:
tar -xvf /dev/nst0 etc

if they are stored with absolute paths then there is a way of doing it but I cannot remember or find how, hopefully someone else will do so?

If my assumption of restore being like tar is wrong then the link to a site site about Bacula restore may help!
# 3  
Old 02-08-2010
@mojoman. Please just this once post which Operating System you are using today.

@TonyFullerMalv . The unix command "restore" is not an alias to tar. It is the converse of "dump" - the unix standard backup program.
The exact commands to restore files do of course need a definitive statement of the exact commands used to backúp the files.

I am sure that mojoman can try command-line restores in a development environment. A correctly-implemented unix "dump" command creates a backup which can be restored to any mountpoint.

Sorry I cannot pursue this thread further.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

2. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies
Login or Register to Ask a Question