Guys, I need help writing short scripts.
I manually backup important filesystems to tape by using following steps. lets say i need to backup /bkup filesystem to tape:
1. cd /tapebackup (/tapebackup is large file sized enabled JFS to hold the .tar and .tar.Z files)
tar cvf filename.date.tar /bkup
2. cd /tapebackup
compress -c filename.date.tar > filename.date.tar.Z
3. cd /tapebackup
tar cvf /dev/rmt0 filename.date.tar.Z
plz. help me with generating separate scripts for all these tasks, "date" should be the system date and in script3 a step should be included that wil be Email the admin at abc@yahoo.com when the tape backup is done.
Also, can we combine the scripts into one main script such that 2 is executed after 1 is finished and 3 is executed afer 2 is finished.
Thanks,
Moh.
I manually backup important filesystems to tape by using following steps. lets say i need to backup /bkup filesystem to tape:
1. cd /tapebackup (/tapebackup is large file sized enabled JFS to hold the .tar and .tar.Z files)
tar cvf filename.date.tar /bkup
2. cd /tapebackup
compress -c filename.date.tar > filename.date.tar.Z
3. cd /tapebackup
tar cvf /dev/rmt0 filename.date.tar.Z
plz. help me with generating separate scripts for all these tasks, "date" should be the system date and in script3 a step should be included that wil be Email the admin at abc@yahoo.com when the tape backup is done.
Also, can we combine the scripts into one main script such that 2 is executed after 1 is finished and 3 is executed afer 2 is finished.
Thanks,
Moh.