22.2. Restore
From open-support.info
< Book:OTRS 3.0 - Admin Manual | Chapter 22(Difference between revisions)
(Created page with "{{Book |next=~/Appendix A |heading=22.2. |title=Restore |status=draft |author=Dick6809 }} <onlyinclude>To restore a backup, the saved application data has to be written back into...") |
|||
Line 3: | Line 3: | ||
|heading=22.2. | |heading=22.2. | ||
|title=Restore | |title=Restore | ||
- | | | + | |editor=Dick6809 |
- | + | ||
}} | }} | ||
<onlyinclude>To restore a backup, the saved application data has to be written back into the installation directory, e.g. /opt/otrs. Also the database has to be restored. | <onlyinclude>To restore a backup, the saved application data has to be written back into the installation directory, e.g. /opt/otrs. Also the database has to be restored. |
Latest revision as of 08:24, 24 April 2011
To restore a backup, the saved application data has to be written back into the installation directory, e.g. /opt/otrs. Also the database has to be restored.
A script scripts/restore.pl (see Script 22.4 below), which simplifies the restore process, is shipped with every OTRS installation. It supports MySQL and PostgreSQL.
linux:/opt/otrs/scripts# ./restore.pl --help restore.pl <Revision 1.1> - restore script Copyright (c) 2001-2005 Martin Edenhofer <martin@otrs.org> usage: restore.pl -b /data_backup/<TIME>/ -d /opt/otrs/ linux:/opt/otrs/scripts# |
Script 22.4. Getting help about the restore mechanism. |
Data that is stored, for example, in the directory /backup/2010-09-07_14-28/, can be restored with the command specified in Script 22.5, assuming the OTRS installation is at /opt/otrs.
linux:/opt/otrs/scripts# ./restore.pl -b /backup/2010-09-07_14-28 -d /opt/otrs/ Restore /backup/2010-09-07_14-28//Config.tar.gz ... Restore /backup/2010-09-07_14-28//Application.tar.gz ... create MySQL decompresses SQL-file ... cat SQL-file into MySQL database compress SQL-file... linux:/opt/otrs/scripts# |
Script 22.5. Restoring OTRS data. |