1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

mail report from backup script

Discussion in 'Plesk for Linux - 8.x and Older' started by foscolino, Apr 5, 2005.

  1. foscolino

    foscolino Guest

    0
     
    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.
     
Loading...