LinuxQuestions.org
Review your favorite Linux distribution.
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 12-23-2003, 11:56 AM   #1
johniccp
LQ Newbie
 
Registered: Nov 2003
Location: Broome County, NY
Distribution: SUSE 10 SP 2
Posts: 20

Rep: Reputation: 0
tar killed Red Hat 3 ES


The Intel system with Red Hat 3 ES is new. I'm learning how to backup and restore files. Posting I have read here have helped with small backups. But now, I intend to backup the entire system to tape.

I signed on as root.
I opened a terminal window.

# cd /
# tar -czf /dev/st0 /

The system freezes. No response to keyboard or mouse.
Any thoughts? How do I backup the whole thing?
 
Old 12-23-2003, 10:40 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"The system freezes."

Aren't you getting into a recursion where you are trying to backup /dev/st0 onto /dev/st0?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-26-2003, 08:58 AM   #3
johniccp
LQ Newbie
 
Registered: Nov 2003
Location: Broome County, NY
Distribution: SUSE 10 SP 2
Posts: 20

Original Poster
Rep: Reputation: 0
Perhaps I am. If I can backup my entire DG-UX system, can I also backup my entire Linux system? Otherwise, how would the /dev directory get backed up at all?
 
Old 12-26-2003, 10:21 AM   #4
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
Correct me if I am wrong (because I definitely could be) but I thought the syntax was tar -czvf <filename> <what to tar>

I am by no means an expert, but I also dont know why you would use /dev/st0 in your tar statement. To backup the whole root directory I would use tar -czvf /mnt/store/backup.tar /*

Let me know if I am wrong or if I helped please
 
Old 12-26-2003, 11:36 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"Otherwise, how would the /dev directory get backed up at all?"

You could backup /dev to a tar file in /tmp or /mnt. Then do a system tar backup to /dev/st0 which excludes /dev. This makes restoring /dev more complicated than restoring the rest of the system but otherwise should work OK.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-27-2003, 08:10 AM   #6
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
holy shit ! use 'dump' and 'restore', they are much easy and 'trustable' !

And use a per-filesystem device name for the backups. I mean, when I want to backup /, I do it with /dev/hda1, which will backup only what belongs to root, not including /var, i.e. Afterwards I backup /dev/hda3 (i.e., /var)
 
Old 12-31-2003, 07:40 AM   #7
johniccp
LQ Newbie
 
Registered: Nov 2003
Location: Broome County, NY
Distribution: SUSE 10 SP 2
Posts: 20

Original Poster
Rep: Reputation: 0
To Pablob: I use tar because in the RedHat Enterprise Linux 3 Intro to Systems Administration documentation, there is a note from Linus Torvalds discouraging the use of dump in favor of tar/cpio/xxx solutions.

To Jailbait: I was able to bypass the system freezing by doing the backup in text mode rather than in GUI mode.

To Gates1026: I'm willing to investigate tar syntax combinations. Thank you for your suggestion.
 
  


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
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 06:19 AM
Difficulty installing proftpd-1.2.10.tar.bz2 on Red Hat 9 dkgilbey Linux - Software 2 03-25-2005 08:43 AM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 07:33 PM
red hat 9.0.93. -beta red hat 10-xmms problem ronss Red Hat 1 09-08-2003 05:00 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration