Using CRON To Restore CPanel Backups Daily

Nov 21, 2008

A couple weeks ago, I encountered a big server crash on my VPS that caused me a lot of downtime. I'm currently trying to figure out a solution to keep a current "clone" of all of my server accounts on a second server. That way, if I ever encounter another crash, I'll be able to simply change DNS information to have all accounts "live" using the backup server.

I appreciate any input, advice, suggestions, criticism, etc. Here's what I have in mind...

1. I currently have all of my websites hosted on Server #1. (We'll call it that for the sake of avoiding confusion.)

2. I have an automatic nightly backup setup via cPanel / WHM that backs up all accounts from Server #1 to Server #2 via FTP. (Server #2 is in a totally different data center, with a different provider.)

3. The nightly backup packages all of the accounts as "cPanel Full Backups." So, they're compressed, and as such, they don't work as "live, functioning websites" on Server #2.

The only way to make them "live and functional" on Server #2 would be to use cPanel to "restore" the backups.

4. So, what I'd like to do is setup a CRON job that would automatically "Restore" the backups each morning on Server #2. That way, Server #2 would always have a functional version of all my accounts, that is less than a day old. Then, if Server #1 ever crashed, I'd just have to change DNS information to point to Server #2, and all of the websites would be live again, without having to physically restore all of the backups using cPanel.

I don't know a ton about CRON. However, as I understand it, CRON couldn't actually make cPanel restore the backups. However, I'm assuming that when you use cPanel's "Restore" function, it just goes through a series of processes. So, it seems logical to me that, if you knew what those processes were, you could write a CRON job to automate the process every morning.

Did that make sense?

If so, is it possible?

Do you guys have any input, criticism, etc?

If it's doable, can you make any suggestions that would help me make this happen?

Finally, if you think you have the expertise to make this happen, I'd be interested in chatting with you via Private Message. I'd be willing to pay to have this done.(Note to Moderators: I'm not sure if my last comment is allowed or not ... if not, please feel free to remove it. I'm far more interested in the discussion of this process than trying to solicit help in making it happen.)

View 5 Replies


ADVERTISEMENT

Using CRON To Restore CPanel Backups Daily

Nov 21, 2008

I encountered a big server crash on my VPS that caused me a lot of downtime. I'm currently trying to figure out a solution to keep a current "clone" of all of my server accounts on a second server. That way, if I ever encounter another crash, I'll be able to simply change DNS information to have all accounts "live" using the backup server.

I appreciate any input, advice, suggestions, criticism, etc. Here's what I have in mind...

1. I currently have all of my websites hosted on Server #1. (We'll call it that for the sake of avoiding confusion.)

2. I have an automatic nightly backup setup via cPanel / WHM that backs up all accounts from Server #1 to Server #2 via FTP. (Server #2 is in a totally different data center, with a different provider.)

3. The nightly backup packages all of the accounts as "cPanel Full Backups." So, they're compressed, and as such, they don't work as "live, functioning websites" on Server #2. The only way to make them "live and functional" on Server #2 would be to use cPanel to "restore" the backups.

4. So, what I'd like to do is setup a CRON job that would automatically "Restore" the backups each morning on Server #2. That way, Server #2 would always have a functional version of all my accounts, that is less than a day old. Then, if Server #1 ever crashed, I'd just have to change DNS information to point to Server #2, and all of the websites would be live again, without having to physically restore all of the backups using cPanel.

I don't know a ton about CRON. However, as I understand it, CRON couldn't actually make cPanel restore the backups. However, I'm assuming that when you use cPanel's "Restore" function, it just goes through a series of processes. So, it seems logical to me that, if you knew what those processes were, you could write a CRON job to automate the process every morning.

Did that make sense?

If so, is it possible?

Do you guys have any input, criticism, etc?

If it's doable, can you make any suggestions that would help me make this happen?

Finally, if you think you have the expertise to make this happen, I'd be interested in chatting with you via Private Message. I'd be willing to pay a reasonable sum for some help with this.

View 5 Replies View Related

Cron Job In Cpanel. Want To Automate Backups

Aug 20, 2007

I have been doing some research and I would love some help with this. I want to set up a cron to automatically backup my site's files & databases once a month. And I am not sure what how I do it?

- Do I need a script on my server and then the cron job runs it?
- Is there a better way to do this then cron?

View 6 Replies View Related

Creating Daily Backups

Mar 30, 2009

I want to set up my server (a linux dedicated server) to automatically create daily backups of the pop3, mysql, & webfiles. I want it to go to a server which i have purchased with the exact same specifications.

I am not very good at unix command line/scripting. So what I need is for someone to help me define the backup strategy, select the scripts, and tell me of how to make sure backup server is secure.

View 7 Replies View Related

RAID-1 Vs. Daily Backups

Mar 7, 2007

I just had a quick question about backup solutions. What advantage would I have by setting up 2 HD's in a RAID-1 array as opposed to just doing daily automated backups on one of the drives.

The way I see it, if I have automated backups, HD use for that backup drive is limited to say 20 minutes a day. In a RAID-1 array however, both drives are used at the same rate. Wouldn't this provide better life expectancy for the backup drive, granted it is at the expense of having a guaranteed instant replacement for that original drive?

Reason I'm asking is because I'm setting up a Mac Mini for a friend as a web server and he would like to have data backups. The only way to add space is to intall an external hard drive so my options are a bit limited.

View 7 Replies View Related

Doubt About Csf :: Check /etc/cron.daily/logrotate

Nov 1, 2009

i need information about this option 'Check /etc/cron.daily/logrotate for /tmp noexec workaround', there are in the server check, of the csf test, someone can explain to me about this function? should do it?

the actually state is 'warning'.

View 12 Replies View Related

Is It Possible To Create A Cron To Backup Mysql Data Daily

May 15, 2009

Is there any way to create a cron to backup mysql data daily ( or weekly )? I mean an "auto script" to run this command daily

mysqldump -u usernam -p password dataname > file.sql

View 11 Replies View Related

Plesk 12.x / Linux :: Servershield Errors And Warnings In Daily Cron

Nov 19, 2014

I get these emails every day, sometimes less warnings, but today there are plenty again:

Subject: Cron <root@plesk01> /opt/psa/admin/bin/php -c '/opt/psa/admin/conf/php.ini' -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/servershield/scripts/aggregate-stats.php'

Code:

PHP Notice: Undefined property: stdClass::$response; File: /opt/psa/admin/plib/modules/servershield/scripts/aggregate-stats.php, Line: 21

PHP Notice: Trying to get property of non-object; File: /opt/psa/admin/plib/modules/servershield/scripts/aggregate-stats.php, Line: 21

[Code] .....

They started showing up when I upgraded to Plesk 12 and activated the server shield extension. The server is an Ubuntu 12.04 LTS.

View 5 Replies View Related

Cost Effective Service For Daily Dedicated Server Backups?

Aug 13, 2008

Which is the best and cost effective service for daily dedicated server backups?

View 7 Replies View Related

Restore A Backups

Jun 23, 2008

I have dedicated server and I have daily,weekly and monthly backups located in:

root: /backup/cpbackup (my secondary drive)
each account's backup locate in specific directory like:
the backup of account website1.com will be located in:
root: /backup/cpbackup/website1
all backups are not compressed file

So, How can I restore one or more backup?

View 5 Replies View Related

Plesk 12.x / Linux :: Restore Selected Objects Does Not Work For FTP Repository Backups?

Apr 9, 2015

I set up a FTP backup repository today however when attempting to restore selected objects from the backup there are a couple of messages that state:

"Restore the backup file despite a corrupted signature"

"You can select objects to restore only when you are restoring from backups that were created in Plesk 12.0 or later."

I noticed that the backup residing in the FTP repository has a .tar extension whilst the one I did in the server repository has a .xml extension.

Restoring selected objects from the server repository works fine.

Why is this not possible? I'd like to restore selected objects from the FTP repository. Otherwise I'll have to transfer the backup file from FTP repository to the server which is really inefficient.

View 8 Replies View Related

CPanel Daily Backup: Load

May 5, 2008

I have my WHM/cPanel installation configured with daily and weekly backups. I checked at what time of the day the server load was at the minimum and configured the cPanel backup cron to run then.

The problem now is: Backing up a few hundred accounts results in a high server load. My server configuration:

Dual Processor Quad Core Xeon 5335 2.0GHz with 4GB RAM and 2 x 250GB SATA HDD hosted at SoftLayer.

The accounts are located on the first HDD and the backup archives are placed on the second HDD.

What can I do about this? I'd like to take daily backups of all accounts but not if my server load increases up to 10... That kind of renders the cPanel backup feature useless if it doesn't even work on a powerful server like this one...

Would it help if I use an application such as Auto Nice Daemon to give the backup process a lower priority? But then again that won't work on the MySQL dumps? And I think it's not a CPU problem but an I/O wait problem? Other processes have to wait for disk access because the disk-intensive backup process is running?

View 9 Replies View Related

Daily Full Backup On Cpanel

Apr 6, 2007

I have seen resellerzoom provides daily full backup to their customer. How should i configure my WHM so that it create daily backup and delete old backup.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved