Restore Command


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Restore Command
# 1  
Old 11-20-2008
Restore Command

How can I tell the restore command to restore my files to another directory than the one archived? I want to restore a directory to a directory called temp and NOT its original location.
# 2  
Old 11-20-2008
Error message while restoring

I do the following and get the error message below. How can I resolve the issue?

Code:
[root@machine /]# restore -h -f /dev/nst2 -T /tmp/backup_restore -x /etc/cron.daily
restore: ./etc: File exists
restore: ./etc/cron.daily: File exists
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): 
Specify next volume # (none if no more volumes): none

# 3  
Old 01-30-2009
The restore command will extract files in the directory you were in when you invoked restore. You don't specify a destination directory! -T is only for placing files temporarily until the file has been completely extracted.

Omit the -h option -- this will only restore the directory "/etc/cron.daily" -- not the files in it!
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

DD command to backup and restore

Hi, Currently I have 2 servers. 1 is already installed with RHEL4(withmyapplications) and the other one is still brand new. My question is, is it possible to use DD command to backup the whole harddrive for the RHEL4 server and restore it to the new brand server so that I do not have to... (3 Replies)
Discussion started by: flekzout
3 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

3. Red Hat

Dump and restore command usage ??

Hi, I am using RHEL 4.0 I need to take backup of a directory and then restore it to some other location. For taking Backup of final directory, I am using this code: dump -0aj -f /home/vicky/final.dump /home/vicky/final/ Now, I am trying to restore this final.dump to some other... (2 Replies)
Discussion started by: vikas027
2 Replies

4. UNIX for Dummies Questions & Answers

Restore command

Does the restore command run very very slow? I am trying to do restore some files, there is practically nobody else on the system. System is idle 99% of the time, but still my files are not found yet. I have been running this command for almost 6 hours. We have an AIX/UNIX 5.1 machine. The... (5 Replies)
Discussion started by: Latha Nair
5 Replies
Login or Register to Ask a Question