echo "Rotating Informix logical log backup files..." BACKUPDIR=/u/backups/informix/logs # Set the logs BACKUP directory if [ -f $BACKUPDIR/logs7.tape -a -s $BACKUPDIR/logs6.tape ] then rm -f $BACKUPDIR/logs7.tape fi if [ -s $BACKUPDIR/logs6.tape -a -s $BACKUPDIR/logs5.tape ] then mv $BACKUPDIR/logs6.tape $BACKUPDIR/logs7.tape fi if [ -s $BACKUPDIR/logs5.tape -a -s $BACKUPDIR/logs4.tape ] then mv $BACKUPDIR/logs5.tape $BACKUPDIR/logs6.tape fi if [ -s $BACKUPDIR/logs4.tape -a -s $BACKUPDIR/logs3.tape ] then mv $BACKUPDIR/logs4.tape $BACKUPDIR/logs5.tape fi if [ -s $BACKUPDIR/logs3.tape -a -s $BACKUPDIR/logs2.tape ] then mv $BACKUPDIR/logs3.tape $BACKUPDIR/logs4.tape fi if [ -s $BACKUPDIR/logs2.tape -a -s $BACKUPDIR/logs1.tape ] then mv $BACKUPDIR/logs2.tape $BACKUPDIR/logs3.tape fi if [ -s $BACKUPDIR/logs1.tape -a -s $BACKUPDIR/logs0.tape ] then mv $BACKUPDIR/logs1.tape $BACKUPDIR/logs2.tape fi if [ -s $BACKUPDIR/logs0.tape ] then mv $BACKUPDIR/logs0.tape $BACKUPDIR/logs1.tape fi > $BACKUPDIR/logs0.tape chmod 664 $BACKUPDIR/logs0.tape chown informix $BACKUPDIR/logs0.tape chgrp informix $BACKUPDIR/logs0.tape ################################################################################