Sponsored Content
Top Forums UNIX for Advanced & Expert Users Compress files with output to tape Post 6219 by Perderabo on Friday 31st of August 2001 11:13:44 AM
Old 08-31-2001
Most DDS-3 tape drives have built-in compression. The data is compressed on the fly as data is written. To use this feature in most unix versions, you just need to use the right special file. Check the documentation for your tape driver.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Compress log files?

Hi, I have my log files in /home/user1/temp2/logs i want to archive *.log and *.txt files and to store in my /home/user1/temp2/archved/ with *.log with Time stamp ,Please let me know how to do this? (1 Reply)
Discussion started by: redlotus72
1 Replies

2. Shell Programming and Scripting

Compress all INACTIVE Files

Hi gurus, I have a batch job running daily night automatically. The job produces file with extension '.0' like a.0, b.0 etc. Now due to file space constraints, most of the time, the job fails with insufficient disk space and then we have to manually start the job again and keep running the... (1 Reply)
Discussion started by: super_duper_guy
1 Replies

3. UNIX for Dummies Questions & Answers

Compress files

Hi All, I would like to archive some of the scripts below(USFINUM042006_01.CSV USFINUM042006_02.CSV and USFINUM042006_03.CSV )and also use a wildcard e.g. <command> USFINUM*.CSV. Also there are a lot of similar files but I want only the three latest files to be compressed. Which is the best... (3 Replies)
Discussion started by: indira
3 Replies

4. UNIX for Dummies Questions & Answers

how to compress html files

Hello, On a Centos 5.0 server, Apache 2.2 delivers static html page. How could I compress those html pages to gain speed and save bandwidth? is there a utility that would be effective and save? Thanks (2 Replies)
Discussion started by: JCR
2 Replies

5. Shell Programming and Scripting

compress files

Could someone give me an idea how to compress all files from a given directory that are not of type .z (compressed). Please help. (2 Replies)
Discussion started by: lesstjm
2 Replies

6. UNIX for Dummies Questions & Answers

Compress multiple files at one go

I want to compress all the files which are three years older ..I have thousands of files... 1) This doesnt work find ./ -type f -mtime +1176 -print | xargs -n1 -i tar -cvf {} Errror tar: Missing filenames Probably because of - find ./ -type f -mtime -1 -print returns - " ./temp.txt"... (6 Replies)
Discussion started by: kedar.mehta
6 Replies

7. UNIX for Dummies Questions & Answers

How to compress files without extension

Could someone please help? I'm trying to compress all the files in a directory without extension. I know for typical files with extension, the command is something like: tar -zcvf file.tar.gz *.doc What is the command for files without extension? Thanks. (4 Replies)
Discussion started by: AChan1118
4 Replies

8. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

9. Shell Programming and Scripting

Compress a particular month files

Hi ALL, I am working on a folder where there are lot of files for the past one year. I need to compress a particular month files alone. suppose i need to compress the feb month files alone, what is the script we can use. Thanks in advance (2 Replies)
Discussion started by: acronis.84
2 Replies

10. 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
MT(1)							    BSD General Commands Manual 						     MT(1)

NAME
mt -- magnetic tape manipulation SYNOPSIS
mt [-f tapename] command [count] DESCRIPTION
The mt program is used to give commands to a magnetic tape drive. By default mt performs the requested operation once. Operations may be performed multiple times by specifying count. Note that tapename must reference a raw (not block) tape device. If tapename is of the form "host:tapename", or "user@host:tapename", mt writes to the named tape device on the remote host using rmt(8). The rmt(8) process on the remote host is typically initiated via rsh(1), although an alternate method such as ssh(1) can be specified via the RCMD_CMD environment variable. The available commands are listed below. Only as many characters as are required to uniquely identify a command need be specified. asf Move forward count files from the beginning of the tape. This is accomplished by a rewind followed by fsf count. eof, weof Write count end-of-file marks at the current position on the tape. fsf Forward space count files. fsr Forward space count records. bsf Back space count files. bsr Back space count records. rewind Rewind the tape. (The count is ignored.) offline, rewoffl Rewind the tape and place the tape unit off-line. Where supported, this ejects the tape. (The count is ignored.) status Print status information about the tape unit. (The count is ignored.) retension Retensions the tape. Not all tape drives support this feature. (The count is ignored.) erase Erases the tape Not all tape drives support this feature. (The count is ignored.) eew Enable or disable early warning EOM behaviour. Set count to nonzero to enable, zero to disable. eom Forward space to the end of recorded media. (The count is ignored.) blocksize, setblk Set the tape blocksize to count bytes. A count of zero sets variable blocksize. density, setdensity Set the tape density code to count as specified in the SCSI-3 specification. See the DENSITY CODES section for a list of codes for commonly used media types. rdspos Read the logical block position of the tape. Not all tape drives support this feature. (The count is ignored.) rdhpos Read the hardware block position of the tape. Not all tape drives support this feature. (The count is ignored.) setspos Set the logical block position of the tape to count. Not all tape drives support this feature. sethpos Set the hardware block position of the tape to count. Not all tape drives support this feature. compress If count is zero, disable compression. Otherwise enable compression. Not all tape drives support this feature. If a tape name is not specified, and the environment variable TAPE is not set, then mt uses the device /dev/nrst0. ENVIRONMENT
If the following environment variables exist, they are used by mt. TAPE mt uses device filename given in the TAPE environment variable if the tapename argument is not given. RCMD_CMD mt will use RCMD_CMD rather than /usr/bin/rsh to invoke rmt(8) on a remote machine. The full path name must be specified. FILES
/dev/rst* Raw SCSI tape device /dev/rmt* Raw magnetic tape device EXIT STATUS
mt returns a 0 exit status when the operation(s) were successful, 1 if the command was unrecognized, and 2 if an operation failed. DENSITY CODES
The SCSI-3 specification defines a number of density codes for various tape media, some of which are listed here. Note that many tape drive vendors also define model-specific codes. Code Format 0 Device default 1 1/2" 800 bpi 2 1/2" 1600 bpi 3 1/2" 6250 bpi 4 QIC-11 5 QIC-24 15 QIC-120 16 QIC-150 17 QIC-320/525 18 QIC-1320/1350 19 DDS 28 QIC-385M 29 QIC-410M 30 QIC-1000C 31 QIC-2100C 32 QIC-6GB 33 QIC-20GB 34 QIC-2GB 35 QIC-875M 36 DDS-2 37 DDS-3 38 DDS-4 SEE ALSO
dd(1), ioctl(2), mtio(4), st(4), environ(7) HISTORY
The mt utility appeared in 4.3BSD. BSD
March 9, 2008 BSD
All times are GMT -4. The time now is 03:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy