Advice php script for backup (sites,mysql) and sent on email

Discussion in 'PHP' started by beacon, May 2, 2008.

  1. #1
    hello
    Need php script for:
    1. backup site data
    2. backup all mysql databases
    3. all zip
    4. sent to email
    Thanks for advice.
     
    beacon, May 2, 2008 IP
  2. Altari

    Altari Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Good luck with this. :)

    You'll need cron jobs, the php zip library and access to fwrite. It's not going to be an easy thing to do (not really hard, but a real pain in the rear). I'd also suggest not eMailing it. Using the standard php mail function can take a decent amount of server resources, especially when dealing with large eMails (and attachments). It would be better to save it and eMail a link to the most recent backup.
     
    Altari, May 2, 2008 IP
  3. beacon

    beacon Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Altari thanks, maybe there are ready solution for backups.
     
    beacon, May 2, 2008 IP
  4. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Um why not use a shell script with cron? That's what i use.
     
    007c, May 2, 2008 IP
  5. beacon

    beacon Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i dont know unix commands (
    Please write simple example for backup some dirs with mysql databases,
    and sent on email with attachment
     
    beacon, May 2, 2008 IP
  6. beacon

    beacon Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    beacon, May 4, 2008 IP