#1 (permalink)  
Old 08-28-2009, 08:03 PM
Registered User
 
Join Date: Aug 2009
Posts: 5
EthraZa is on a distinguished road
Question Restoring only system and cpanel configs from backup

Hi!
I have 2 servers setup in a HA environment using heartbeat. My home directories and database directories are transfered in real time to the secondary server with drbd.
On the primary server, I'm doing a daily cpbackup and coping it over to the secondary server.

Now my questions are...

a) How can I restore the backup on secondary by script? There is some script in cpanel's /scripts folder that do that for me? Since I already have the users home and mysql in place, there is some way to restore only the system and cpanel files and directories (by script)? This script can be run with the cpanel service stoped? This script need to have access to the home directories?

b) If not, I'll need to write my won restore script, in that case, restore the files in dirs and files backup directories is enough to get cpanel work flawless on secondary server?
And about files like crontab file for the users?

c) How to add directories and/or files to the cpbackup routine (ie. add /etc/csf to backup)?

Thanks.

Last edited by EthraZa; 08-29-2009 at 03:49 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-08-2009, 02:33 PM
cPanelMattCurry's Avatar
cPanel Staff (Administrator)
 
Join Date: Aug 2009
Location: Houston, Tx
Posts: 274
cPanelMattCurry is on a distinguished road
Backup Questions

Hello,

To use the command line to restore an account would be one thing, and that backup would have to have been made by cPanel. I can give you a link to a scripts list that would help you out. However, if you are trying to do more than that, and that's what it appears you will have to create a script to do what you are attempting. That would unfortunately not be something I could do for you. However, you could create a script at /scripts/postcpbackup that would run after the backup is done. That may help with that you are trying to do. Please let me know if you have any other questions.
Cpanel Scripts « L i n u x S t u f f s
Thank you,
Matthew Curry
__________________
If you desire technical assistance from our staff, please let our technical analysts take a look at your server for you. You can do this by submitting a support ticket at http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
restoring a cpanel backup.... Craftwell cPanel and WHM Discussions 4 04-04-2008 01:16 PM
Backup/Restore only cPanel/WHM configs? Cron0 cPanel and WHM Discussions 0 03-29-2007 10:39 AM
Backup Configs? jlimited cPanel and WHM Discussions 0 01-14-2005 09:08 PM
Backup account configs Jeewhizz cPanel and WHM Discussions 12 09-15-2004 10:09 PM
[Restoring] Anyone has experience with WHM backup restoring ? Radio_Head cPanel and WHM Discussions 2 06-04-2003 03:19 AM


All times are GMT -5. The time now is 10:58 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc