Chapter 22.1. Backup
From open-support.info
There are two types of data to backup: application files (e.g. the files in /opt/otrs), and the data stored in the database.
To simplify backups, the script scripts/backup.pl is included with every OTRS installation. It can be run to backup all important data (see Script 22.1 below).
linux:/opt/otrs# cd scripts/ linux:/opt/otrs/scripts# ./backup.pl --help backup.pl <Revision 1.1> - backup script Copyright (c) 2001-2005 Martin Edenhofer <martin@otrs.org> usage: backup.pl -d /data_backup/ [-c bzip2|gzip] [-r 30] [-t nofullbackup] linux:/opt/otrs/scripts# |
Script 22.1. Getting help about the OTRS backup mechanism. |
Execute the command specified in Script 22.2 to create a backup:
linux:/opt/otrs/scripts# ./backup.pl -d /backup/ Backup /backup//2010-09-07_14-28/Config.tar.gz ... done Backup /backup//2010-09-07_14-28/Application.tar.gz ... done Dump MySQL rdbms ... done Compress SQL-file... done linux:/opt/otrs/scripts# |
Script 22.2. Creating a backup. |
All data was stored in the directory /backup/2010-09-07_14-28/ (see Script 22.3 below). Additionally, the data was saved into a .tar.gz file.
linux:/opt/otrs/scripts# ls /backup/2010-09-07_14-28/ Application.tar.gz Config.tar.gz DatabaseBackup.sql.gz linux:/opt/otrs/scripts# |
Script 22.3. Checking the backup files. |