Restore

To restore a backup, the saved data for the application 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 to simplify 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#

Data, which are stored in the directory /backup/2005-09-12_14-28/, can be restored with the following command and an OTRS installation in /opt/otrs.

linux:/opt/otrs/scripts# ./restore.pl -b /backup/2005-09-12_14-28 -d /opt/otrs/
Restore /backup/2005-09-12_14-28//Config.tar.gz ...
Restore /backup/2005-09-12_14-28//Application.tar.gz ...
create MySQL
decompresses SQL-file ...
cat SQL-file into MySQL database
compress SQL-file...
linux:/opt/otrs/scripts#