Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    4

    Default How do YOU do a backup

    I have my own ways, but how do you backup client websites?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    To backup client website you can configure the backup through WHM ---> Configure backup from Backup section.

  3. #3
    Member kdoShaun's Avatar
    Join Date
    Sep 2008
    Posts
    18

    Default

    Personally I have 2x Backups for my servers.

    4 Partitions
    - Home
    - Root
    - Backup
    - Backup Root

    Each night:
    - Cpanel does its default backups to the backup partition (mounting / unmount)
    - I have a custom script that copy's the root partition to backup root (not decending into other volumes) (mount/unmount)

    I then copy the weekly offmachine and that goes into the Offsite rotation strat.

    I also have a second entyr in the grub.conf to boot centOS of the Backup root if the first root gets trashed. And having KVM/Serial Console access to the box means im close to 100% safe from Data Corupted Failures.
    Shaun Deans
    Kadeo - kadeo.com.au
    Web Applications :: Custom Software :: Intelligent Integration :: WHMCS Modules/Addons

  4. #4
    Member
    Join Date
    Dec 2007
    Posts
    30

    Default

    I have a bunch of scripts that dump all MySQL databases into tarballs per database which stay on the server and are overwritten on weekly rotation. I then have a dump script which runs every 24hrs and dumps /home (which includes the MySQL tarballs), /root, /usr and /var to a spare internal drive.

    The entire server (more or less) is incrementally rsync'd every 10minutes via cron to a clone box (same hardware etc) which is also set up as a MySQL slave so more or less realtime replication of databases. This takes place over a dedicated 1Gb interface (crossover cable between the two boxes) so as not to consume bandwidth on the public interface. This gives me a second server I can immediately pull into action if required. This 2nd box dumps itself by rsync to a windows box every 24hrs, which backs it all up to external HDD every week, and the external drive is switched over weekly and taken off site.

    I could possibly be considered an rsync addict...!
    Last edited by HorburySchool; 09-14-2009 at 12:42 PM.

  5. #5
    Member
    Join Date
    Apr 2007
    Posts
    37

    Default

    nvm. . 10 characters

  6. #6
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Default

    Quote Originally Posted by thewebhosting View Post
    To backup client website you can configure the backup through WHM ---> Configure backup from Backup section.
    Sorry for being so to the point, but how hard is it to read what somebody actually posts? It seems more like you preg_match on backup and then give this reply.

    Anyway, I have a custom-made rsync backup script from my server provider. Works perfectly; it first backs up the ACLs and then all files from /home and other essential server data to an off-site server.

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by HorburySchool View Post
    The entire server (more or less) is incrementally rsync'd every 10minutes via cron to a clone box (same hardware etc) which is also set up as a MySQL slave so more or less realtime replication of databases. This takes place over a dedicated 1Gb interface (crossover cable between the two boxes) so as not to consume bandwidth on the public interface. This gives me a second server I can immediately pull into action if required. This 2nd box dumps itself by rsync to a windows box every 24hrs, which backs it all up to external HDD every week, and the external drive is switched over weekly and taken off site.

    I could possibly be considered an rsync addict...!
    I don't understand why you waste the time or additional resources dumping databases or why you would use a cronjob that puts you on a 10 minute delay and risks corrupting your databases in the process?

    Why not simply turn on live MySQL clustering and be done with it?

    That way your second server really will be in perfect sync with your primary server and you don't have to worry about any messy rsyncs or slow cronjobs!

  8. #8
    Member
    Join Date
    Dec 2007
    Posts
    30

    Default

    p'raps cos I don't know how... !?

  9. #9
    Member
    Join Date
    Jan 2007
    Posts
    10

    Default RE: MySQL Backup

    Why not simply turn on live MySQL clustering and be done with it?
    MySQL Clustering is Excellent. Clustering while providing excellent high-availability and in cases scalability will not accomplish backup and archiving.

    We need to be careful with replication / clustering and not ignore backups. Replication will also replicate accidental deletes (number one cause of data loss) as well as malicious deletes caused by an intrusion. Let alone the need for offsite disaster recovery.

    And depending on the nature of the data set most environments find they benefit from having recovery points of how their data looked at previous points in time for a variety of reasons.

    You may be interested in a technical paper I wrote covering backup methods for MySQL databases: MySQL Backup Technology - Technical Papers - R1Soft Continuous Data Protection - Docs - KB Articles - Technical Papers
    - David Wartell
    - R1Soft Founder - V.P. BBS Technologies, R1Soft Division

  10. #10
    Member
    Join Date
    Nov 2004
    Location
    Earth
    Posts
    151

    Default

    r1Soft account and MySQL CDP off-site.

  11. #11
    bhd
    bhd is offline
    Member
    Join Date
    Sep 2003
    Location
    JNB ZA
    Posts
    142

    Default

    WHM's backup has always been problematic for us. Couple of years back we wrote our own script that does a round-robin backup over 7 days. It's not perfect and it has very little documentation but it does the job for us.

    Basically it uses the cPanel backup script to do the heavy lifting but does it's own scheduling and FTP. It also has a cPanel WHM module but that still needs some work. (The command line version works well)

    One of the things we recently added was a way to throttle the remote FTP uploads with one of the cpan modules. We found that large backups would often eat all the bandwidth and slow down normal user access.

    Feel free to download it and if enough people are interested I'd be happy to work with someone to get some proper documentation together for it as well as a better install script.

  12. #12
    Member
    Join Date
    Aug 2003
    Posts
    385

    Default

    For our corporate sites (billing - project tracking - customer tickets - cms) we dump the sql databases every hour and send them to an offsite ftp at our office.

    I dump the db's with a date '+%d.%I'-filename which gives me:
    17.05-database.sql

    I then compress and upload these files to our ftp server with the overwrite option enabled which gives me hourly dumps for a full month.

    Then we do your regular daily cpanel full daily+weekly+monthly backups off to the same offsite ftp.

    That FTP server has Symantec CDP installed that runs to another datacenter.

    I really wish cpanel had a seperate built in sql backup function and s3 integration.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-22-2010, 05:53 PM
  2. Replies: 3
    Last Post: 10-24-2008, 09:41 PM
  3. Replies: 4
    Last Post: 10-23-2006, 04:33 AM
  4. Daily backup, when run backup is upto date shown - force
    By demomen in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-28-2005, 07:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube