LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-30-2008, 03:52 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,267

Rep: Reputation: 99
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
 
Old 04-30-2008, 11:11 PM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
Any particular reason you're using dump / restore specifically?

Code:
cd /home/vicky/final/
tar cvf /tmp/final.tar *
cd /tmp/vv/
tar xvf /tmp/final.tar
 
Old 04-30-2008, 11:16 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,267

Original Poster
Rep: Reputation: 99
Wink

Quote:
Originally Posted by fukawi2 View Post
Any particular reason you're using dump / restore specifically?

Code:
cd /home/vicky/final/
tar cvf /tmp/final.tar *
cd /tmp/vv/
tar xvf /tmp/final.tar
Hi,

No there is no particular reason.I am just trying to know the exact usage of dump command. I could google it. I know there are many other alternatives available.

Thanks,
Vikas
 
Old 05-04-2008, 10:55 PM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,267

Original Poster
Rep: Reputation: 99
people pls someone help me out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
restore from dump killed wiggers Linux - Newbie 0 11-24-2005 05:54 PM
remote dump/restore jbeiter Linux - General 1 10-19-2004 11:11 AM
dump & restore hiren_a Linux - Newbie 1 04-29-2003 01:56 AM
dump/restore moger Linux - Software 4 12-31-2002 05:34 AM
dump and restore nat Linux - General 1 04-26-2002 05:08 AM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration