• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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