ksh scripting

ksh scripting

if [ -f “/backup/01.tar” ]
then
mv /backup/01.tar /backup/01.tar.old
else
echo “Backup van gisteren avond is MISLUKT ! ”
mail -s “backup mislukt” iets@domein.be < /var/log/backup.log
exit
fi
if [ -f “/backup/02.tar” ]
then
mv /backup/02.tar /backup/02.tar.old
else
echo “Backup van gisteren avond is MISLUKT ! ”
mail -s “Netscaler backup mislukt” iets@domein.be < /var/log/backup.log
exit
fi

Leave a Reply

Your email address will not be published. Required fields are marked *

four × one =

This site uses Akismet to reduce spam. Learn how your comment data is processed.