Type : System
Operating System : Linux Like
Website : http://www2.backup-manager.org/Home
Write by : Fabien FAYE
Backup-manager is a very simple application to do a complet backup of your server and push all thoses data in a another place.
Backup manager can backup this list of application :
SVN, MYSQL, Files
Backup manager can export all those data with those services:
SCP, RSYNC, FTP, BurnDisc
Type of archive :
tar.gz, bzip2
- INSTALLATION
- CONFIGURATION
- TIPS
Please check the stable version on the official web site
First Step you have to download the tar of backup-manager present a this url : http://www.backup-manager.org/download/
# wget http://www.backup-manager.org/download/backup-manager-0.*.*.tar.gz
Extract the archive:
#tar -xvf backup-manager-0.*.*.tar.gz
#cd backup-manager-0.6.3
#make install
#cp /usr/share/backup-manager/backup-manager.conf.tpl /etc/backup-manager.conf
Now you backup manager is ready to do a backup of your data present in /etc/backup-manager.conf
Edit this file /etc/backup-manager.conf
#vi /etc/backup-manager.conf
Now i present you some section of this file backup this file is very long :
- Selection of the backup type :
# The backup method to use.
# Available methods are:
# - tarball
# - tarball-incremental
# - mysql
# - svn
# - pipe
# - none
# If you don't want to use any backup method (you don't want to
# build archives) then choose "none"
export BM_ARCHIVE_METHOD="tarball mysql"
For this configuration i want to have a backup of file and my mysql server.
Example of folder selection for a file backup
# Directories you want to backup as tarballs (separated by spaces)
export BM_TARBALL_DIRECTORIES="/etc /home /var/www /var/lib/mysql "
Mysql Connection for a full backup :
##############################################################
# Backup method: MYSQl
#############################################################
# This method is dedicated to MySQL databases.
# You should not use the tarball method for backing up database
# directories or you may have corrupted archives.
# Enter here the list of databases
export BM_MYSQL_DATABASES="mysql"
# The user who is allowed to read every databases filled in BM_MYSQL_DATABASES
export BM_MYSQL_ADMINLOGIN="root"
# its password
export BM_MYSQL_ADMINPASS="rootpassword"
# the host where the database is
export BM_MYSQL_HOST="localhost"
# the port where MySQL listen to on the host
export BM_MYSQL_PORT="3306"
# which compression format to use? (gzip or bzip2)
export BM_MYSQL_FILETYPE="bzip2"
For the mysql backup you have a another solution to do a backup via a export to a another mysql server.
- Selection of the upload methode :
##############################################################
# Section "UPLOAD"
# You can upload archives to remote hosts with different
# methods.
#############################################################
# Which method to use for uploading archives, you can put
# multiple methods here.
# Available methods:
# - scp
# - ftp
# - rsync
# - none
# If you don't want to use any upload method (you don't want to
# upload files to remote hosts) then choose "none"
export BM_UPLOAD_METHOD="ftp"
- FTP methode
# The FTP method
#############################################################
# the user to use for the FTP connections/transfers
export BM_UPLOAD_FTP_USER="fabien"
# the FTP user's password
export BM_UPLOAD_FTP_PASSWORD="chris&fab"
# FTP specific rmeote hosts
export BM_UPLOAD_FTP_HOSTS="ffaye.no-ip.org"
# purge archives on remote hosts before uploading?
export BM_UPLOAD_FTP_PURGE="false"
# destination for FTP uploads (overrides BM_UPLOAD_DESTINATION)
export BM_UPLOAD_FTP_DESTINATION="/A/Backup-Server"
- Crontab
Add a crontab to do a backup evry night:
#crontab -e
0 5 * * * backup-manager > /dev/null 2>&1
- Error during installation
During my installation on my centos server, after the first run of backup-manager i had this error :
Can't locate BackupManager/Config.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.3/i586-linux-thread-multi ...
to solved this problem you have to check if config.pm present in the extract folder of backup manager is present in this folder : /usr/lib64/perl5/
My command line to solve this case:
#cp -R /usr/share/perl5/BackupManager /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
- Devel release
In the last release you can do a mysql dump only for you selection of table it is better than the stable version.
With this kind of backup, you have just to restore a specifique table and not the full backup.
















































