How to compress a directory on a Sun Solaris 5.7 ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to compress a directory on a Sun Solaris 5.7 ?
Prev   Next
# 5  
Old 08-23-2003
Re: Thanks

Quote:
Originally posted by sameerdes
My server does not have much space and backing up on tape would have taken much time and anyway, I wanted free space temporarily. Hence, I was looking for something, which would compress contents of all sub-directories.
gzip is available on our server
Tar is more than a tape backup program. Tar w/ gzip installed on the server would be able to create a compressed recursive backup of directory that you need backed up. I use this quite frequently when I need a quick backup of a website. I believe tar is recursive from the directory that you started down the tree.

try using:

"tar -cpz * > filename.tar.gz"

I used * as wildcard to take everything in the dir i am in and everythign underneath it, but you can specify any file or dir that you want.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I compress all files in a directory?

the problem states "Write a script that compresses all the files in the directory. Make a directory and put some files in it. Also make a sub directory in your directory and put files in it also. Once you have this basic ability to compress all files within a directory, add to your script a menu of... (1 Reply)
Discussion started by: Brittany
1 Replies

2. Shell Programming and Scripting

Archive directory script with tar/compress

Hi all I need to write a script that archives all files with a certain date in the filename, to another location. It has to run on a AIX using tar/compress or another standard AIX tool. The directory will have x files, each prefixed with a date like yyyymmdd_desc.csv. I need all to... (7 Replies)
Discussion started by: AIXfrog
7 Replies

3. Shell Programming and Scripting

Compress the contents of a directory while copying data into it

Hi guys I have a need to compress the contents of a directory while I am copying data into it. I was able to do this when it was only one file by doing as below: STEP1: mknod myfile p STEP2: chmod 777 myfile STEP3: compress -v < myfile > myfile.Z & STEP4: cp -p xyz_file myfile... (2 Replies)
Discussion started by: user1602
2 Replies

4. Solaris

how to tar a directory in a sun solaris?

i have lot of directories which are needed to be transferred to a LINUX workstation. to do this i need to tar the directories. please let me know how to tar the directories in Sun Solaris. (7 Replies)
Discussion started by: mmb
7 Replies

5. Shell Programming and Scripting

compress Directory

Hi Friends, I have a directory under which 10 more directories are there. In each 10 directories there are several files. I want to do FTP. But in FTP we cannt Transfer the main directory. each Time we have to go to the respective directry and then we have to to FTP. For this instance I... (9 Replies)
Discussion started by: deep_kol
9 Replies

6. Shell Programming and Scripting

How to Compress files before moving them in a directory

I need a shell script that zips a file before moving them..please help (3 Replies)
Discussion started by: godalle
3 Replies
Login or Register to Ask a Question
clprivnet(7)					     Sun Cluster Device and Network Interfaces					      clprivnet(7)

NAME
clprivnet - SUNW,clprivnet Sun Cluster private network driver SYNOPSIS
/dev/clprivnet DESCRIPTION
Note - Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor- mation about the object-oriented command set, see the Intro(1CL) man page. The SUNW,clprivnet Sun Cluster private network driver is a STREAMS pseudo driver supporting Sun Cluster resident applications that use standard Solaris interfaces to communicate over the Sun Cluster private network. By striping data traffic over all links, this driver opti- mally utilizes the bandwidth of the private network while supporting highly available, software fault-tolerant communication. APPLICATION PROGRAMMING INTERFACE
The driver is supported by the character-special device /dev/clprivnet, but is reserved for Sun Cluster internal operation and the standard Solaris network utilities. This interface must not be directly used for general application communication. ADMINISTRATION
The administration and configuration of the driver as a network interface is done completely by the Sun Cluster infrastructure internals. FILES
/dev/clprivnet clprivnet special character device /usr/kernel/drv/clprivnet.conf System-wide default device driver properties Sun Cluster 3.2 05 Sep 2007 clprivnet(7)