compress & cpio commands


 
Thread Tools Search this Thread
Operating Systems SCO compress & cpio commands
# 1  
Old 09-04-2005
Question compress & cpio commands

Our End of Day backup routine uses following script.

start End-of-day
compress $BASE TO /home/compdir
write /home/compdir to DATTAPE
end

where
$BASE=/home2/Rev83
DATATAPE=/dev/rmt/ctape1
write=cpio (not sure about parameters)

since I'm new to UNIX, i dont know how to restore data using cpio and i'm not sure about how compress works, Any one would plz. help me on these issues and also on how can i read data from the tape drive.?

Best Regards,
Tayyab
# 2  
Old 09-07-2005
See the man pages for compress and cpio. If you don't have them available, the try a search on SCO's web site. This link is for 5.0.7 man pages. There are examples of how to use the commands in the man pages. Also, you should find out what the parameters are in the cpio and look them up to understand them. You'll need to know how the data was written to tape (what parameters) to be able to read the tape to restore them.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Cpio - input files (from list) are stored in different order inside cpio archive - why?

Due to budget constraints I have to reinvent an Enterprise backup system in a SPARC (sun4v) Solaris estate (10 & 11). (yep - reinvent wheel, fun but time consuming. Is this wise?! :confused: ) For each filesystem of interest, to try to capture a 'catalog' at the front of each cpio archive (for... (1 Reply)
Discussion started by: am115998
1 Replies

2. Solaris

Restricting commands & access

Dear all, I am administering a DC environment of over 100+ Solaris servers used by various teams including Databases. Every user created on the node belonging to databases is assigned group staff(10) . I want that all users belonging to staff should NOT be able to execute certain system... (6 Replies)
Discussion started by: Junaid Subhani
6 Replies

3. Shell Programming and Scripting

Grep commands & format

I have these grep commands and need to put them next each other (in horizontal layout). cat /tmp/dsmc.out |grep Done cat /tmp/dsmc.out |grep "Elapsed processing time:" cat /tmp/dsmc.out |grep "Client date/time:" cat /tmp/dsmc.out |grep "Total number of bytes transferred:" so that it... (6 Replies)
Discussion started by: Daniel Gate
6 Replies

4. Shell Programming and Scripting

what is the difference between commands compress, pack and gzip

Are the above commands does the same job ? same functionaliy ? If so, why do we have three utilities for the same functinality. (1 Reply)
Discussion started by: frintocf
1 Replies

5. Shell Programming and Scripting

Append && echo "success" to all commands

I am learning to build from SVN and other tools, with a lot of copying and pasting from forums. I like to append && echo "success" to all commands so that I can see at a glance if things went all right. Is there a way that I can have the bash shell append this to all commands? Thanks! (5 Replies)
Discussion started by: dotancohen
5 Replies

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

7. UNIX for Dummies Questions & Answers

Find & If commands together

Hi to everybody!! I have a (simple) question but i am newbie with unix and so i need a little help...I am writing a bash script file and i want to put inside this: i have this command " find /usr/bin -name bzip2 -print " that i want to put it in a "if" statement and when it returns true the... (6 Replies)
Discussion started by: orestis7
6 Replies

8. Shell Programming and Scripting

How to compress & delete files in ksh

Hi, I would like to know how to go about writing a script to compress & deleate old files from /var/mqm/log file system. I am a complete beginner and would love it if someone could actually give me the code for this. Thank you. (4 Replies)
Discussion started by: vkumar
4 Replies

9. UNIX for Dummies Questions & Answers

SSH Compress Commands

I am brand new to unix and am hoping someone can start me in the right direction. I hope I have the right forum but if not can a moderator move this thread to the right area. I am moving servers and need to back up a folder and its sub folders into a .tar.gz file then want to upload that file... (2 Replies)
Discussion started by: kushti
2 Replies

10. UNIX for Dummies Questions & Answers

cpio command with compress

Hi friends.. I want to be able to copy a file from one location to another (locally). The location the files are copied to should have compressed instances of the files they were copied from. copy from /home/user/test.file copy to /backup/user/test.file.Z I need to be able to do this... (1 Reply)
Discussion started by: sureshy
1 Replies
Login or Register to Ask a Question