From: Patrick B. O'Brien (pobrien@DOIT.NV.GOV)
Date: Tue Dec 16 2003 - 14:13:01 EST
Thank you Bill!
-----Original Message-----
From: Bill Verzal [mailto:BVerzal@KOMATSUNA.COM]
Sent: Tuesday, December 16, 2003 11:09 AM
To: aix-l@Princeton.EDU
Subject: Re: Write one file to a DVD=CDW
#!/usr/bin/ksh
#
YmdHMS=`date +%Y%m%d-%H%M%S`
log="/var/mksysb.$YmdHMS"
exec 1>$log 2>&1
echo '====================================================='
date
echo '====================================================='
echo " "
umount /cdrom 1>/dev/null 2>&1
rm /usr/cd.iso/bk.tar 2>/dev/null
rm /usr/cd.iso/bk.tar.Z 2>/dev/null
rm /usr/cd.iso/backup.iso 2>/dev/null
files='/root /usr/local/bin /home/operator /etc'
echo "Backup created $YmdHMS" > /usr/cd.iso/README
echo "Backup contains: $files" |tee -a /usr/cd.iso/README
echo " "
tar -cf /usr/cd.iso/bk.tar $files
tar -tf /usr/cd.iso/bk.tar
compress /usr/cd.iso/bk.tar
echo "Erasing CD...\n"
/usr/sbin/burncd -s "max" -f /dev/acd0 erase
echo "Creating ISO filesystem...\n"
/usr/bin/mkisofs -o /usr/cd.iso/backup.iso /usr/cd.iso
echo "Burning CD...\n"
/usr/sbin/burncd -s "max" -f /dev/acd0 data /usr/cd.iso/backup.iso fixate
echo '====================================================='
date
echo '====================================================='
echo " "
echo "CD Creation completed."
strings $log|mail -s "misoper2 Backup Log" root
This is from a FreeBSD system, but I believe the similar commands exist in
AIX 5. I wrote this to backup a FreeBSD system. It runs every other day
via cron at 1:00 AM.
Instead of "burncd", use "cdrecord". "mkisofs" is in AIX.
BV
--------------------------------------------------------
"If everything is coming your way, then you are in the wrong lane"
Bill Verzal
AIX Administrator, Komatsu America
(847) 970-3726 - direct
(847) 970-4184 - fax
"Patrick B.
O'Brien"
<pobrien@DOIT.NV. To
GOV> aix-l@Princeton.EDU
Sent by: IBM AIX cc
Discussion List
<aix-l@Princeton. Subject
EDU> Write one file to a DVD=CDW
12/16/2003 10:38
AM
Please respond to
IBM AIX
Discussion List
<aix-l@Princeton.
EDU>
Creating a backup to a DVD-CDW is done by doing a, /usr/sbin/mkcd -d
'/dev/cd0' -V 'rootvg'.
Is it possible to write just a few files to a DVD-CDW more than once, say a
few files a day for a month?
Can you provide me the command syntax?
TIA.
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:24 EDT