PDA

View Full Version : mail report from backup script


foscolino
5th April 2005, 11:03 AM
hi,
is it possibile send a mail report after script plesk backup is completed?
is it possible for you?

i have wrote this script but the report.txt in my mail is blank

# backup psa
cd /usr/local/psa/bin/
./psadump -F -f /home/test/backup-notario / > /home/test/report-backup.txt
( echo To: test@test.net
echo Subject: Report Backup my server
echo
cat /home/test/report.txt
) | /var/qmail/bin/qmail-inject

#end of batch
thanks.

jamesyeeoc
30th April 2005, 03:10 PM
Looks like you are naming the file ' /home/test/report-backup.txt', but then trying to send ' cat /home/test/report.txt' which is a different filename...