1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    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

    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
    cat /home/test/report.txt
    ) | /var/qmail/bin/qmail-inject

    #end of batch
  2. jamesyeeoc

    jamesyeeoc Guest

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