Go Back   CP Web Hosting - reseller hosting > CP Questions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2007, 04:48 AM
Senior Member
 
Join Date: May 2007
Posts: 334
Default Restoring the H-Sphere System Database

How to Restore the H-Sphere System Database ?
Reply With Quote
  #2 (permalink)  
Old 09-20-2007, 04:54 AM
Senior Member
 
Join Date: Apr 2007
Posts: 347
Default

Quote:
Originally Posted by alemcherry View Post
How to Restore the H-Sphere System Database ?

The H-Sphere backup location is set in the /hsphere/shared/backup/hs_bck.cfg config file. The default location is /var/backup.

hs_bck stores the system data backup (with user content if configured in hs_bck.cfg) in the following files in the BCK_DIR directory:

<ARCHIVE>.tgz - the latest backup; <ARCHIVE> is the name of the backup file set in hs_bck.cfg. This is the default name:
BACKUP hs_bck
Older backup files are named <ARCHIVE>.1.tgz, <ARCHIVE>.2.tgz, ...
hsphere.sql - the H-Sphere system database backup;
counter.sql, poll.sql, guestbook.sql - SiteStudio system databases are also backed up if SiteStudio is integrated with H-Sphere.


Restoring The H-Sphere System Database

The H-Sphere system database restore is described here.



Restoring System Data

Untar <ARCHIVE>.tgz in the H-Sphere backup directory. System data is restored to the corresponding locations on the CP server:

~cpanel/shiva/psoft_config/ (H-Sphere configuration files)
~cpanel/shiva/shiva-templates/IMAGES/ (H-Sphere and custom images)
~cpanel/shiva/custom/ (customization directory)
/hsphere/shared/SiteStudio/psoft_config/ (SS config)
/hsphere/shared/SiteStudio/var/websites/ (SS sites)
Reply With Quote
  #3 (permalink)  
Old 09-20-2007, 04:56 AM
Senior Member
 
Join Date: May 2007
Posts: 345
Default

And how to Restore User Content ?
Reply With Quote
  #4 (permalink)  
Old 09-20-2007, 04:58 AM
Senior Member
 
Join Date: Apr 2007
Posts: 347
Default

Quote:
Originally Posted by mouse View Post
And how to Restore User Content ?

Restoring User Content

Untar <ARCHIVE>.tgz in the H-Sphere backup directory on a box you wish to restore user content. User content is restored to the corresponding locations:

DNS server:

/etc/named.conf
/hsphere/local/var/named/
Web server:

/hsphere/local/home/ (users' dirs)
/hsphere/local/config/ (httpd and ftp configs)
/usr/local/frontpage/ (frontpage configs)
Mail server:

~vpopmail/domains/
~vpopmail/etc/
~qmaild/users/
~qmaild/control/
MySQL server:

~mysql/


PostgreSQL server:

For Linux servers:
~postgres/
For FreeBSD servers:
~pgsql/
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

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



All times are GMT. The time now is 02:41 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0