| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-10-2007, 08:22 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2007
Posts: 3
Rep:
|
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
|
|
|
|
09-10-2007, 08:51 PM
|
#2
|
|
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189
Rep: 
|
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.
|
|
|
|
09-10-2007, 10:34 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2007
Posts: 3
Original Poster
Rep:
|
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
|
|
|
|
09-11-2007, 08:21 AM
|
#4
|
|
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189
Rep: 
|
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. ;-)
|
|
|
|
09-13-2007, 01:21 AM
|
#5
|
|
LQ Newbie
Registered: Sep 2007
Posts: 3
Original Poster
Rep:
|
Thanks choogendyk for all of the information. I think I will try out gnutar.
Thanks again,
Rob
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:52 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|