#!/bin/sh # File to backup all my files stored on my local # hard drive and NFS drives EMAIL="your_email@your_domain.edu" NFS_ISO=nfs_backup.iso SCR_ISO=scr_backup.iso NFS_DIR=/home/mobiserve2/mjmille2/iso_files # Remove old ISO files so that they do not get included # in the gzip of the directory rm -f $NFS_DIR/$NFS_ISO rm -f $NFS_DIR/$SCR_ISO # Change to the location of my Makefile that gzips # all my files cd /scr/tar_files make all # Create ISO images. You'll need to manually divide # them up such that they are small enough to fit on a CD mkisofs -r -J -o $NFS_ISO nfs_backup/ mkisofs -r -J -o $SCR_ISO scr_backup/ # Move the ISO images to an NFS drive so that they can # be burned in Windows mv -f $NFS_ISO $NFS_DIR mv -f $SCR_ISO $NFS_DIR # Email yourself with the ls info for your ISO files, to # serve as a reminder that the ISO files are available and # let you check that the file size is what you would expect so # you can verify that no errors occured ls -lh $NFS_DIR | mutt $EMAIL -s "[crhc-backup] Finished"