Skip to content
Jerome Quere edited this page Aug 14, 2015 · 4 revisions

The configuration is writen in bash and declare backup tasks and storages method. The configuration file is include using bash source function this way you can insert bash code or access environment variable if needed.

Minimal config file

IB_TASKS=""    # List all available tasks name separated by space.
IB_STORAGES="" # List all available storages name separated by space

Both IB_TASKS and IB_STORAGES MUST be set

Web-Server backup exemple

IB_TASKS="all web mysql"
IB_STORAGES="sshBackup"

# Declare the web task
IB_TASK_web_TYPE="tarball-incremental"
IB_TASK_web_FOLDERS="/var/www"
IB_TASK_web_LIST_FILE="/root/backup-web.list"
IB_TASK_web_FILE_BASENAME="webdata"
IB_TASK_web_MASTER_FREQUENCY="weekly"
IB_TASK_web_MASTER_FREQUENCY_VALUE="1"
IB_TASK_web_STORAGE="sshBackup"

# Declare the mysql task
IB_TASK_mysql_TYPE="mysql"
IB_TASK_mysql_USER="root"
IB_TASK_mysql_PASSWORD="password"
IB_TASK_mysql_DATABASES="my-database"
IB_TASK_mysql_STORAGE="sshBackup"

# Declare the all task
IB_TASK_all_TYPE="subtask"
IB_TASK_all_SUBTASKS="web mysql"

# Declare the "ssh-backup" storage
IB_STORAGE_sshBackup_TYPE="ssh"
IB_STORAGE_sshBackup_HOST="backup.exemple.com"
IB_STORAGE_sshBackup_USER="user"
IB_STORAGE_sshBackup_BASEPATH="/backup"
IB_STORAGE_sshBackup_SSHKEY="/root/.ssh/id_rsa"

For a complete list of tasks type and their configuration click here.
For a complete list of storage type and their configuration click here.