ksh scripting
- Angelo Schalley
- Jan, 26, 2010
- Linux
- No Comments
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