The best way to do a backup for a large forum

Discussion in 'vBulletin' started by trocobob, Mar 14, 2009.

  1. #1
    Hi

    Taking backups for large forums isnt something easy , so I wonder what is the best way to conserve a full backups - in external servers -for such sites, ?

    I found dedicated servers for backups but i wonder if this is the best option .

    Thanks all
     
    trocobob, Mar 14, 2009 IP
  2. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #2
    I assume you are talking about how best to backup a large mysql database? Raid 1+0 hardware solution (mirrored stripe sets) would work.

    Or mysql replication on to another server sitting in the same rack?

    How big is the database?
     
    ThreeGuineaWatch, Mar 14, 2009 IP
  3. trocobob

    trocobob Banned

    Messages:
    1,441
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Im talking about a Complete backup ( Mysql + Files ) site .
    especially about a synchronized backup to another server ..
     
    trocobob, Mar 15, 2009 IP
  4. engineerroy2008

    engineerroy2008 Member

    Messages:
    192
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #4
    Try offsite backup package this will surely help your need, for a 15-30 GB package normal charge is around $5-$10 per month in various companies ( rsyncpalace, webbycart, Bqbackup etc) you can get one of the package and take the backup, also in this you can define what you want to backup and what not. Using a dedicated server for backup only is costly option also need lot of maintenance, you can use a VPS instead
     
    engineerroy2008, Mar 15, 2009 IP
  5. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #5
    Get a 110mb free account. Create a cron job to gzip and ftp a backup to 110mb and you're done. Oh..and protect the 110mb directory.
     
    RectangleMan, Mar 17, 2009 IP
  6. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #6
    If you have dedicated server for backup, I would suggest to go for CDP backup (r1soft). It is bit costly but it is worth to take important data to backed up.

    Kailash
     
    kailash, Mar 17, 2009 IP
  7. baonhi41

    baonhi41 Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Use phpMyBackup Pro. Have 3 options you can choose 1 or multi options:
    - Backup to an directory on local server.
    - Backup to other server via FTP
    - Send to your email

    Download: http://www.phpmybackuppro.net/download.php

    I use this and no problem. My database is 20 MB in ZIP mode
     
    baonhi41, Mar 18, 2009 IP
  8. trocobob

    trocobob Banned

    Messages:
    1,441
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Im talking about a database with more than 700mb and files more tha 10gb ..
     
    trocobob, Mar 19, 2009 IP
  9. Traffic-Bug

    Traffic-Bug Active Member

    Messages:
    1,866
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #9
    Tape and ship them offsite
     
    Traffic-Bug, Mar 19, 2009 IP
  10. baonhi41

    baonhi41 Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    20MB in ZIP ==>> 150MB in Text.
    You still Use phpMyBackup Pro to backup DATABESE with >>700MB in Text. If huge database use ssh to backup
     
    baonhi41, Mar 20, 2009 IP
  11. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #11
    My 450mb database gzips to about 100mb.

    Again..setup local bash script, run cron, have it FTP to a different host.

    That's not acceptable imho. It's php for one. It's a whole script for two. You don't need all that.

    Here is my sample bash script:

    
    #!/usr/local/bin/bash
    
    # backup a single database, gzipped to a date-named folder
    # designed to be run twice per day (folders named am/pm)
    
    # cron something like this..
    # 0 0,12 * * * /home/backups/mysql_backup.sh
    
    # database details
    username='USERNAME'
    password='PASSWORD'
    database='DATABASE'
    
    # main backup folder on web server
    home='/usr/backups/'
    
    # sub-folder for mysql backups
    baxdir='mysql'
    
    # if you alter this, test it.
    d=`date +%y.%m.%d_%p`
    
    cd $home
    mkdir -p $baxdir/$d
    
      echo $database
      /usr/sbin/mysqldump --add-drop-table --allow-keywords --databases -q -a -c -u$username -p$password $database > $baxdir/$d/$database.sql
      rm -f $baxdir/$d/$database.sql.gz
      gzip -9 $baxdir/$d/$database.sql
    
    
    Code (markup):
    Adjust to suit your needs. That script doesn't do the FTP but you can get another small script to do that and run it cron about 15-30 minutes after the other script ends. Or just incorporate it into the backup script.
     
    RectangleMan, Mar 21, 2009 IP
  12. Brooke I. Yates

    Brooke I. Yates Banned

    Messages:
    70
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I have a ~100MB gzipped DB and my best way to backup is do it manually, not automatically. In such way, you can control all the processes and results.
    Zip your scripts and dump your DB and that's are all basic steps you need to do. For large DB, use MySQLDumper or bigdump.
     
    Brooke I. Yates, Mar 22, 2009 IP
  13. Bendo

    Bendo Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #13
    If you have a large amount of stuff to backup, I can highly recommend http://www.bqbackup.com, used in combination with RYSNC it's pretty good. Handles my 20GB tar.gz with no issues.
     
    Bendo, Mar 23, 2009 IP
  14. cedivad

    cedivad Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Hi. I have a usenet forum (based on vbulletin) that have a db of more than 14GB. Every night a backup is generated and sent to my home server throught sftp. I can post the script if you it will help you, i spent a lot of time doing it.
     
    cedivad, Mar 23, 2009 IP