PDA

View Full Version : How do I manually configure backups


LeeJ
07-07-2006, 07:36 AM
* This tutorial is provided as a basic configuration example. Zervex Server Solutions or its partners or affiliates take no responsibility for any damages loss of business or data associated with this or any other tutorial/product found to be associated with Zervex Server Solutions Inc.

**Keep in mind that you can also configure backups via the ServerCP Web interface. This tutorial is only for advanced users. The web interface is and interface to this file and cron.

*** It is always good to do data integrity checks of your backups. The backup solution only uses tar and ftp, but as with all backup solutions data corruption or loss can occur.

To manually configure backups copy the below contents into the file /root/.backup.conf. Once you have added the configuration file simply type "runbackup" via the command line and the backups will start and status information will appear on your screen. To automate the backup process just add a cronjob.


##Begin backup.conf file
#
# This file describes the backup configuration for the ServerCP automated
# backup application. This file needs to be placed within the home directory
# of the user running the application and named .backup.conf.
# So if you want to backup an entire server this file would need
# to be placed in the root users home directory as .backup.conf.
#

#The name of this machine
machinename="server.yourmachine.com"

#hostname or ip address of the server you backup to
backlocation="backupserver.yourdomain.com"

#FTP account username on backup server
username="ftpusername"

#FTP accoun password on backup server
password="rails"

#Remote or local backup
backup_type="remote"

#Person to recieve backup status emails
recipient="you@yourdomain.com"

# All directories and files that you would like to have backed up. If you add
# more to the list be sure that you seperate by spaces.
# /home and /var/lib/mysql are backed up by default and do
# not need to be added below. vim/vi users make sure that multiple lines wrap and do not truncate when
# you copy and paste. The below should be one continuous line.

bpaths="/etc /var/spool/cron /var/named /usr/local/apache/conf /usr/local/apache/domlogs /usr/local/frontpage /usr/share/ssl /var/lib/pgsql /var/db/dsm /var/mailman /root"

##End Backup.conf file