i Need To compress and send public html folder to my email

Discussion in 'Site & Server Administration' started by Mido, Nov 20, 2006.

  1. #1
    i know that there is a way to zip the whole public html folder and then email or download it automatically or manual can someone tell me how to do this ?
     
    Mido, Nov 20, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    login via ssh. go inside your account's home dir (cd ~user) but not inside public_html. then tar -cpzf mysite.tar.gz public_html/*

    you'll then have mysite.tar.gz in your user folder.

    move it to your public_html folder then download it over http, or just download it without moving it with ftp/scp
     
    disgust, Nov 20, 2006 IP
    Mido likes this.
  3. Mido

    Mido Well-Known Member

    Messages:
    1,438
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    158
    #3
    thank you disgust now i know the normal way but i think there is script or something that makes it automatically and send it also to the Email .
     
    Mido, Nov 21, 2006 IP
  4. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you could make a bash script to do that and cron it if you wanted
     
    disgust, Nov 21, 2006 IP
  5. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #5
    agnivo007, Nov 21, 2006 IP