LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-10-2007, 08:22 PM   #1
DoSerMaN
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Smile cpio: warning: skipped ### bytes of junk on backup to tape job


Hey all, this is my first post here, hope I dont violate any rules. Anyway my problem is that I have a backup to tape job built that back's up our whole system. When it runs I have it set to print a report. The report states this: cpio: warning: skipped ### bytes of junk. Our OS is CentOS, cant give you a version number right now, I will add it later. I am at a loss as to why this is happening. I have formated the tapes, I have sucessfully wrten to them befor, the only difference is that I am doing a full system backup this time and not just a few dir. like I was befor. I was thinking that some files may still be in use, and cant be coppied. Any help would be apreciated.

Thanks in advance,
Robert
 
Old 09-10-2007, 08:51 PM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
Maybe this doesn't directly address your question, but why did you choose cpio? The most commonly relied upon method for writing tapes is gnutar.

I do use cpio occasionally. I have a daily script that does incrementals of my amanda directory to catch my indexes and logs after backups have completed. It looks like this:

find /usr/local/etc/amanda -mtime -1 | cpio -oa 2>/dev/null | ( cd ${ADIR} && cpio -imd );;

Then I tar and gzip those directories and scp them to another server.

So, in that scenario I'm using ufsdump within amanda for tape backups, cpio to get incrementals of my amanda directories, and tar to wad that up and shoot it to another server. It's not that I can't make up my mind. It's just that I think each of those is appropriate for the particular situation.

If I were not on Solaris, I would use gnutar instead of ufsdump for the tape backups within amanda.
 
Old 09-10-2007, 10:34 PM   #3
DoSerMaN
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
the only reason that I used cpio is because that's how the walkthrough I found said to do it. I would love to here some other way to do it, such as Tar ect..

I am a nub to Linux and all, and I do tend to learn things the hard way.

Thanks for the quick response,
Robert

Last edited by DoSerMaN; 09-10-2007 at 10:35 PM. Reason: I cant spell
 
Old 09-11-2007, 08:21 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
Well, as a general rule, start with the man pages. man tar.

You could google around, but that can be overwhelming when the topic has too many general keywords. I found http://www.linuxselfhelp.com/gnu/tar..._9.html#SEC128 which gives some examples with multiple archives on a tape.

The one difference between their examples and what I usually do is that I typically use the v option for verbose. To me it is somewhat comforting to see the terminal scrolling up rapidly so that I know it is doing stuff.

If you get comfortable with that, have lots of computers to do, and find that it's getting to be too much manual labor, then you could always adopt amanda http://www.linuxquestions.org/bookmarks/tags/amanda and let it manage and schedule your gnutar, gzip and tapes. But that's probably overkill if you are just learning and just doing your own computer. On the other hand, if you are pushing yourself to learn more, you might. ;-)
 
Old 09-13-2007, 01:21 AM   #5
DoSerMaN
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks choogendyk for all of the information. I think I will try out gnutar.

Thanks again,
Rob
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
retrieving tape backup after using cpio and gzip jazbinschek Linux - Newbie 8 12-29-2005 10:31 PM
Error while backing up to tape using cpio froggo Linux - Enterprise 3 09-29-2005 10:05 AM
Using cpio to backup to CDROM Cyberhund Linux - Newbie 3 07-21-2004 01:49 PM
tar or cpio - Which is better for tape backups? Br. Nicholas Linux - Software 2 07-02-2003 04:06 PM


All times are GMT -5. The time now is 03:03 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