22.2. Restore
From open-support.info
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. |