• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

mail report from backup script

F

foscolino

Guest
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: [email protected]
echo Subject: Report Backup my server
echo
cat /home/test/report.txt
) | /var/qmail/bin/qmail-inject

#end of batch
thanks.
 
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...
 
Back
Top