Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write a script in Unix 4.0

Status
Not open for further replies.

MBLR

IS-IT--Management
Jun 13, 2002
89
IN
Hello,

I have Digital/DEC Unix 4.0. How to write a script to copy a folder to tape drive?

-Ashraf
 
instead of me writing up my way of doing backups etc.....try looking at a few of these links to get a idea, then improve on them



====================================
or just try
#! /usr/bin/ksh

FS=`df|awk '{print $6'}|grep -v Mounted|grep -v '/proc$'|`
mt -f /dev/nrmt#h rewind
for fs in $FS
do
vdump -uvf /dev/nrmt#h ${fs}
====================================
above is very very basic but use this structure and improve on it however you want, i.e. logging, checking (if then else) with exit codes etc....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top