1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send and Delete a backup file

Discussion in 'Shell Script' started by theuman, Aug 28, 2010.

  1. theuman

    theuman New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    Hey Everyone,

    Shell programming is something I haven't learnt or tried before.. but I kind of need it to automate backing up my website.

    At the moment, I have:

    /bin/tar czPf /home/cpanelusername/etc/files/wp-content-weekly.tar.gz /home/cpanelusername/public_html/wp-content/
    but how do I get it to email me the file wp-content-weekly.tar.gz and then delete it?

    Is that possible?

    Thanks for ur help in advance

Share This Page