Chapter 22.1. Backup

From open-support.info

< Book:OTRS 3.0 - Admin Manual | Chapter 22(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Book |next=../2 |heading=Chapter 22.1. |title=Backup |status=draft |author=Dick6809 }} <onlyinclude>There are two types of data to backup: application files (e.g. the files in ...")
 
Line 3: Line 3:
|heading=Chapter 22.1.
|heading=Chapter 22.1.
|title=Backup
|title=Backup
-
|status=draft
+
|editor=Dick6809
-
|author=Dick6809
+
}}
}}
<onlyinclude>There are two types of data to backup: application files (e.g. the files in /opt/otrs), and the data stored in the database.  
<onlyinclude>There are two types of data to backup: application files (e.g. the files in /opt/otrs), and the data stored in the database.  

Latest revision as of 08:21, 24 April 2011

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.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox