The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-30-2008
vikas027 vikas027 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 77
Question 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:

Code:
dump -0aj -f /home/vicky/final.dump /home/vicky/final/
Now, I am trying to restore this final.dump to some other directory, say /tmp/vv

When, I am using code
Code:
restore -rf final.dump /tmp/vv
I am getting these errors :-

Code:
[root@xxx tmp]# restore -rf final.dump /tmp/vv
Dump tape is compressed.
restore: ./home: File exists
restore: ./home/vicky: File exists
restore: ./home/vicky/final: File exists
[root@xxxx tmp]#
The final.dump is again trying to uncompress in /home/.

Pls help, I need to uncompress final.dump in some other location.

Thanks in adv.
Vikas