Quote:
Originally Posted by Axe Solutions Thanx alemcherry
How to use H-Sphere backup script ? |
Backing Up System Data
The backup script is located in the /hsphere/shared/backup directory of the CP server and includes the following files:
hs_bck - the main script file;
hs_bck.cfg - the script configuration file;
hs_bck.txt - description/readme file.
The script backs up
H-Sphere properties file.
SiteStudio properties files.
The main H-Sphere Postgresql DB.
This script does not automatically back up the content of user directories, mail data and DNS settings. To back up user content by means of the backup script, configure the hs_bck.cfg config file by adding user content directories specified below.
You can edit the hs_bck.cfg file to specify the backup storage directory, the number of latest backups to be stored (7 by default), the log file, etc.
Also, H-Sphere includes the /hsphere/shared/scripts/cron/hs_bck file which launches the backup script. For regular automatic backups, add the execution of this file into the CP server crontab configuration. For example, to run the backup script every day at 6:13 AM, add the following line:
13 6 * * * /hsphere/shared/scripts/cron/hs_bck hs_bck.cfg >/dev/null 2>&1
These are the files and directories that are backed up by the script:
H-Sphere and SiteStudio postgres DBs:
hsphere
counter
poll
guestbook
H-Sphere and SiteStudio configuration files:
/hsphere/local/home/cpanel/shiva/psoft_config/*
/hsphere/shared/SiteStudio/psoft_config/*