1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Do you backup your Website MySQL Database?

Discussion in 'MySQL' started by beyondsunny, Feb 17, 2006.

  1. #1
    Hi Guys,

    I've notice that most of the website owners that I know of don't really give much importance to database backup.

    This warning goes out to the article directories, forums or mailing list owners, that totally relying on your web hosting for database backups is the worst bet you can make.

    You can have hundreds of new records in your database daily as your website grows bigger, so even a 1 day downtime without proper backup can really cause you alot of time and money. Think about it.

    So what I've done here is to put together some of the basic steps that I have successfully used to back up almost all of my websites.

    So get your free download at the my signature link below

    Just reply this thread if there's anything you think I have missed out in that guide.

    Cheers!
    Sunny Tan
     
    beyondsunny, Feb 17, 2006 IP
  2. coolsitez

    coolsitez Well-Known Member

    Messages:
    2,586
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    183
    #2
    I just have been thinking about it these days... I have like 5 databases. how long does it take?
     
    coolsitez, Feb 18, 2006 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    Any one who doesn't back-up, is a n00bie!!! Depends on the size. Even a 150 meg database takes less than a minute for back-uping. The hard part can be downloading it to your computer if you're on a slow internet connection, or it's huge for the speed of your connection.

    To you dial-up users, I fill your pain!!!! I remember when 150K was huge!!!!
     
    Nintendo, Feb 18, 2006 IP
  4. iowadawg

    iowadawg Prominent Member

    Messages:
    10,918
    Likes Received:
    811
    Best Answers:
    0
    Trophy Points:
    380
    #4
    My host company backs up everything once a week.
    Trick is to back up the day after they back up.

    Now if there was a way to backup only new additions to the databases, it would help a lot.
     
    iowadawg, Feb 18, 2006 IP
  5. MKInfo

    MKInfo DP Guard Dog

    Messages:
    1,481
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    140
    #5
    I back up at least 3 times a week.Luckily my db's are quite small.
     
    MKInfo, Feb 18, 2006 IP
  6. SonicReducer

    SonicReducer Peon

    Messages:
    1,012
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I backup every weekend. Then download the backups to my pc AND copy to an external hard drive. I don't trust my host's backups alone.
     
    SonicReducer, Feb 18, 2006 IP
  7. mariush

    mariush Peon

    Messages:
    562
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Every time a major change on the site. I have phpMyAdmin installed on the server so it's just a few steps to export the database already zipped.
     
    mariush, Feb 18, 2006 IP
  8. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I am not having any DB but still do I need to backup my site ? (I don't think so)

    I think people can cron the backup job and the uploading to your computer can also be automated
     
    poseidon, Feb 18, 2006 IP
  9. aqi32

    aqi32 Active Member

    Messages:
    225
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #9
    offsite backups are inexpensive these days, i have rysnc backup my entire servers daily to another server in a different dc. Rsync only backups new data each day, not the whole server saving on processor.

    I also download backups of my databases weekly :)
     
    aqi32, Feb 19, 2006 IP
  10. cpvr

    cpvr Guest

    Messages:
    1,030
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ya, I back up my databases once a week.
     
    cpvr, Feb 19, 2006 IP
  11. popiul99

    popiul99 Peon

    Messages:
    169
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I do it every day ! can`t take any chances
     
    popiul99, Feb 19, 2006 IP
  12. uca

    uca Well-Known Member

    Messages:
    2,242
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    155
    #12
    I didn't, but I will now as I just had a scare!

    I tried installing a phpbb forum with Fantastico and it f****d up the databases that were there already.

    Luckily, I don't know how, but I recovered everything and I am now loooking at getting into the habit of making frequent back ups.

    But you never feel like it's important until something goes wrong!

    just, Back up!
     
    uca, Mar 11, 2006 IP
  13. Seiya

    Seiya Peon

    Messages:
    4,666
    Likes Received:
    404
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Since i built a site that got 1000 members in a month, 100,000 posts... then got hacked and db wiped... i back up very regularly... back up lads!
     
    Seiya, Mar 12, 2006 IP
  14. Div By Zero

    Div By Zero Peon

    Messages:
    64
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    We do nightly backup of the database via mysqldump and for more redundancy always have a backup database server in replication mode with the master so if it fails we have a backup server ready to take its place in few minutes.
     
    Div By Zero, Mar 12, 2006 IP
  15. buronggoy

    buronggoy Peon

    Messages:
    204
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I also backup my db everyday.This is my SOP for my sites..Im on the conservative side.
     
    buronggoy, Mar 13, 2006 IP
  16. adstracker

    adstracker Peon

    Messages:
    81
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #16
    You can do it with PHPMyAdmin.

    Personally, I use:

    mysqldump -hhostname -uusername -ppassword databasename > backupfile.sql
     
    adstracker, Mar 13, 2006 IP
  17. brenda003

    brenda003 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I backup the databases and files every single night.

    A client's website recently got hacked, and I didn't have a full backup of it, and the hosting guys were wanting $15 for a week old backup. Yuck.
     
    brenda003, Mar 15, 2006 IP
  18. amanoffewwords

    amanoffewwords Peon

    Messages:
    71
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I use PhpMYSqlAutoBackup from http://www.dwalker.co.uk/

    You can set it (via a cron job) to send you an email with a dump of your database at whatever frequency you require. It can also store said backup on the server. Been using it for about three months without any problems.

    amofw
     
    amanoffewwords, Mar 24, 2006 IP
    ResaleBroker likes this.
  19. studio606

    studio606 Peon

    Messages:
    110
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Thanks for the link, amanoffewwords. I'm going to try PhpMYSqlAutoBackup. I back up every 3 or 4 days, and this would take care of that automatically. Nice.
     
    studio606, Mar 24, 2006 IP
  20. keltin

    keltin Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    I have 2 hard drives on the server. 1 acts as the main and one is a backup and I have it back up all files and databases everynight because you never know! :)
     
    keltin, Mar 25, 2006 IP