Home

Wednesday, March 21, 2012

Menulis Data Ke Tape

Script ini di gunakan untuk menulis data ke TAPE :

#!/bin/sh
#--------------------------------------------------------------------#
# Script untuk menulis data ke tape                                    #
#                                                                                     #
# Author : Ida Bagus Enderajana                                      #
#                                                                                     #
#--------------------------------------------------------------------#
cd  /backup/
for GZ in `ls *.gz`
do
        echo "`date`: WRITING $GZ to TAPE..."
        tar -cvf /dev/rmt/0n $GZ
done

# Hapus data yang sudah di backup

rm /backup/*.gz

echo "`date` : BACKUP TO TAPE COMPLETE ... "

No comments:

Post a Comment