Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When someone wants to tar a job and then put it on a tape what does this involve?


What are the complete commands to do this?? Does it involve gzip command also??

Is this a completed tar of a job??
[tt]tar xf jobid.tar[/tt]
 
hi greg,

The command you show above is actually the tar command to extract data from a tar archive
x extract
f from this file

To create a tar archive of all the files in the directory /home/mike you might use this command

tar cf mikes.tar /home/mike/*

You would then copy the mike.tar file to the tape drive, what the tape drive is called on your system will vary.

You can create a tar archive directly on the tape drive, to do this you will need to know the device name of the tape drive, let's assume it's /dev/rmt0

tar cf /dev/rmt0 /home/mike/*

Does this help you?
Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 

What is the gzip used for? Is it used to compress the file?

Also what would be the other ways to tar to?

Floppy would be what?
just /floppy/floppy 0

What other devices could I use?


 
Why don't you read

man tar

?

Tar doesn't care what it writes to. You can tar cvf /dev/lp for all it cares (your printer might not like it though). Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Greg,

Yes - gzip is a compression/decompression tool. You don't need it to create tar archives - though if you create a tar archive and compress it using gzip it will take up a lot less space. Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top