Files/MySQL backups sent as email attachment?

Discussion in 'PHP' started by mbreezy, Feb 20, 2011.

  1. #1
    Is there a backup program I can set up as a cron job to backup all files, subdirectories and their contents, as well as the mysql database? I also want it to be emailed to me as a zipped attachment. Is there anything out there for this?

    Thanks
     
    mbreezy, Feb 20, 2011 IP
  2. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #2
    One can be created in short time but can be very costly for server, in case you have large database and big number of files.
    But script can be written witin an hour or less I guess.

    Regards
     
    Vooler, Feb 21, 2011 IP
  3. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #3
    zipped attachment? Do you think you can send 200MB db with mail ?
     
    G3n3s!s, Feb 21, 2011 IP
  4. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #4
    Well, if his server allows to do so, script can. It is all about more CPU resources that will be used for creating backup and then compressing and emailing it. I would preffer, you just receive a link to downlaod, then simpyl downlaod and remove the backup. The downlaod script itself will send yo uwhole file and delete it after done.

    regards
     
    Vooler, Feb 22, 2011 IP
  5. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i there are a ton of ways to cron a backup script but usually an ftp dump is easier than an email which wont be possible for most systems maybe an email notification would be possible
     
    srisen2, Feb 22, 2011 IP