Hi there was unsure on where to post this, the right section I mean.
I always have at least two servers, sometimes 3. The purpose is to keep sites apart and avoid having all the websites down when problems occur. Been using one server for backup purposes and it's proven to be very useful and critical. My approach has been making backups via CPANEL from server A to server B and transferring the backup via FTP, Cpanel allows you this, it's built in.
The problem is, many times I don't need to expand the complete backup (lots of gigs) to get what I want. And MOST TIMES what we need as webmasters is a magic switch to "turn off" server A and turn on server B sort of speaking. So I've been using tar files per site or group of sites, then I easily expand them on the other server. It's fast, easy. I can restore fully functional websites (php, perl, html, etc) with no problem and have it running fast, all it takes is the Domain DNS update.
Files? easy. The compressed file keeps the permissions and structure.
Databases? I created my own CMS doing wonders, and it doesn't use Mysql, it works amazingly well for me with no traffic problems, it was built from zero to grow. BUT anyway if you use databases, or when I have Wordpress projects hosted, I dump/export the databases, solved, easy to add to the automated script.
But what about email? mailboxes?. Is there anyway I could export any config regarding emails to just import-expand on server B? I want to avoid any Cpanel functions so I can automate this thing. I'm almost there, one automated script will do the backup and then will call another script on server B to begin the transfer. Easy. But still no clue on how to deal with email.
I could create all the mailboxes on both servers right? nope, if the clients change their password then will have problems accessing their email when the switch is completed. And also want to avoid double creating each email account.
Both servers are in diff hosting companies. Don't put your all your eggs on the same basket, if you work like that think twice! there is nothing more important than keeping updated backups and to have them in safe places. It will save you lots of work and pain.
Any ideas?