Sponsored Content
Operating Systems Solaris how to tar a directory in a sun solaris? Post 302195223 by era on Wednesday 14th of May 2008 02:47:17 PM
Old 05-14-2008
Wear outdoor clothes, grab a big black brush, and

Code:
tar cf /tmp/directories.tar name of directories

where /tmp/directories.tar is the name of the tar file you want to create, and names, of, and directories are, well, names of directories.

Usually you will also want to gzip or bzip2 compress the tar file; some tar commands even have built-in options to do that at the same time as creating the tar archive. Consult your local manual page for the gory details.
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to compress a directory on a Sun Solaris 5.7 ?

Hi, Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ? Thanks (4 Replies)
Discussion started by: sameerdes
4 Replies

2. UNIX for Dummies Questions & Answers

Sun Solaris 10: How do I create a bootup disc? The Sun website confuses me

Hey there, I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
Discussion started by: Jupiter
0 Replies

3. Solaris

Sun Fire 280R Sun Solaris CRT/Monitor requirements

I am new to Sun. I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor? Thanks. (3 Replies)
Discussion started by: bramptonmt
3 Replies

4. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

5. UNIX for Advanced & Expert Users

How to rsync or tar directory trees, with hidden directory, but without files?

I want to backup all the directory tress, including hidden directories, without copying any files. find . -type d gives the perfect list. When I tried tar, it won't work for me because it tars all the files. find . -type d | xargs tar -cvf a.tar So i tried rsync. On my own test box, the... (4 Replies)
Discussion started by: fld2007
4 Replies

6. AIX

Making Tar of directory and tar file is going to be placed

Quick question, is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?) sample: /opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz will the tar file backup.tgz also include backup.tgz ? i tried... (5 Replies)
Discussion started by: filosophizer
5 Replies
LRZTAR.1(1)						User Contributed Perl Documentation					       LRZTAR.1(1)

NAME
lrztar - Directory wrapper for lrzip SYNOPSIS
lrztar [options] DIRECTORY lrztar -d [options] DIRECTORY.tar.lrz lrzuntar [options] DIRECTORY.tar.lrz DESCRIPTION
lrztar is a wrapper for compressing and decompressing whole directories with lrzip(1) to corresponding file "DIRECTORY.tar.lrz". lrzuntar is identical to "lrztar -d". lrztar takes the same options as lrzip. OPTIONS
See lrzip(1). ENVIRONMENT
None. FILES
None. SEE ALSO
lrzip.conf(5), lrzuntar(1), lrzip(1), lrunzip(1), lrzcat(1), bzip2(1), gzip(1), lzop(1), rzip(1), zip(1) AUTHORS
Program was written by Con Kolivas. This manual page was written by Jari Aalto <jari.aalto@cante.net> (but may be used by others). Released under license GNU GPL version 2 or (at your option) any later version. For more information about license, visit <http://www.gnu.org/copyleft/gpl.html>. perl v5.14.2 2012-02-08 LRZTAR.1(1)
All times are GMT -4. The time now is 03:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy