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

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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/bash
    /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