Visit Our UNIX and Linux User Community


Compress files with output to tape


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Compress files with output to tape
# 1  
Old 08-30-2001
Data Compress files with output to tape

Hi,

I have problem backup my files,

1 of my HD hit 46 % I want to backup 24 files into DDS3 tape (2 of them are more than 2GB)

Can I compress my files with output to DDS3 tape without "tar" to HD first.



Thank you
Sinardy
# 2  
Old 08-30-2001
what os are you running. diffearnt os's have differant backup commands that support diffearnt options.

with the tar command you can have it written directly to tape. there are many examples in the man page.

#man tar
# 3  
Old 08-31-2001
I forget to tell you that, I am tuning my backup script, our previous script took 8 hours to backup 24 files (total is about 10 GB), the script is something like...

tar cv file1 > log.log
tar uv file2 >> log.log
tar uf file3 >> log.log
tar uf file4 >> log.log
..
..

Note: file1 (1.998 GB), file2 (580 MB)

And one of our partition that need to backup is 45% so that I try not to use our HD as our compressed file buffer before backup to tape.

Thank you,
Sinardy
# 4  
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.
# 5  
Old 09-03-2001
Computer Solved

What I know is tape is using special DDS3 block tape size so all your file will not compress...
# 6  
Old 09-07-2001
Hi,

I think you have some possibilites, depending on your OS

1. GNU tar has options for compressing: -z for gzip and -C (I not remember - see man) for compress.

2. You can use pipes with compress command , gzip supports it.

3. Activate compressing on DDS3 - usually it uses tape (SCO) or mt commands for that.

and so on.

Sincerely,
nailk
# 7  
Old 09-07-2001
zipped backup

I think you shoul make a total .tar file as you are doing, then use the gzip GNU tool it is a free binary and finally use the cpio command to send your file to the tape :

$ gzip yourfile.tar
$ ls *.gz | cpio -oc > /dev/rmt/n

this should work properly
Smilie

Previous Thread | Next Thread
Test Your Knowledge in Computers #367
Difficulty: Medium
The Single UNIX Specification specifies vi, so every conforming UNIX system must have it.
True or False?

10 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

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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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

Featured Tech Videos