LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2001, 12:31 AM   #1
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Do I have a viable tar backup?


I did a backup using the tar command.

Here is the command and the output.
-------------------------------------------------------------------

[root@localhost /root]# /bin/tar -czf /mnt/ronsan02/backup.tgz /
/bin/tar: Removing leading `/' from member names
/bin/tar: /proc/kcore: File shrank by 311647744 bytes; padding with zeros
/bin/tar: /proc/2/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/3/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/4/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/5/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/6/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/7/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/8/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/73/exe: Cannot readlink: No such file or directory
/bin/tar: /proc/2074/fd/3: Cannot stat: No such file or directory
/bin/tar: /tmp/.font-unix/fs7100: socket ignored
/bin/tar: /tmp/.X11-unix/X0: socket ignored
/bin/tar: /tmp/ksocket-root/kdeinit-\:0: socket ignored
/bin/tar: /tmp/ksocket-root/klauncherPfMg8b.slave-socket: socket ignored
/bin/tar: /tmp/.ICE-unix/1984: socket ignored
/bin/tar: /tmp/.ICE-unix/1150: socket ignored
/bin/tar: /tmp/.ICE-unix/1902: socket ignored
/bin/tar: /tmp/mcop-root/localhost_localdomain-07c7-3b8dc161: socket ignored
/bin/tar: /dev/log: socket ignored
/bin/tar: /dev/gpmctl: socket ignored
/bin/tar: /home/ronald/.kxmlrpcd-socket-pfGTfP: socket ignored
/bin/tar: /mnt/ronsan02/backup.tgz: file changed as we read it
/bin/tar: /root/.kxmlrpcd-socket-rPN6jj: socket ignored
/bin/tar: Error exit delayed from previous errors
[root@localhost /root]#
------------------------------------------------------------

What do you think? Did I get a viable backup?
How do I check this?
Is there a better way?

The output from this program is cryptic and not understandable.
 
Old 08-30-2001, 01:17 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I would guess that your tar files is good. Most the the files that tar did not like are special files that he can't really handle anyway.

What I usually do to get around taring up /proc, /dev and /tmp is specify the directories I want on the tar file on the command line.

tar -cvf /tmp/backup /home /usr /var /etc /whatever
 
Old 08-30-2001, 02:48 PM   #3
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Original Poster
Rep: Reputation: 30
Thanks for the input

What do you know about cpio taper script or amanda as backup programs. Are any of these worth looking into?
How about restoring a single file using tar? How does one do this?
 
Old 08-30-2001, 05:30 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I have tried some backup programs, but I always seem to fall back on a simple tar command. You should keep one thing in mind when creating backups. Keep it as simple as possible. You don't want to have to struggle to get your backup restored when the time comes. Compression, fancy scripts or formats always cause problems in the end. It is likely that you will not even be restoring to the same hardware, nor with the same tape drive as before.

Tar is all I use.

Gary
 
Old 08-30-2001, 05:33 PM   #5
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Oops..

Code:
tar -xvf tarfile.tar full/path/to/file
This will extract as:

./full/path/to/file
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tar backup TheRealDeal Linux - General 7 02-08-2005 03:25 PM
Using tar for backup. TheRealDeal Linux - General 2 08-10-2004 11:46 PM
tar as backup imsajjadali Red Hat 4 02-07-2004 03:46 PM
tar: How do I backup everything !! grantm Linux - Newbie 3 07-30-2003 02:41 PM
Just did a tar backup-is it viable? rdaves@earthlink.net Linux - General 2 12-04-2001 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:37 PM.

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
Open Source Consulting | Domain Registration