[SOLVED] copy OTRS from production to test

Moderator: crythias

Post Reply
massimobianchi
Znuny newbie
Posts: 67
Joined: 02 Apr 2012, 12:18
Znuny Version: 3.1.14
Real Name: Massimo Bianchi
Company: NPO Sistemi S.p.A.
Contact:

[SOLVED] copy OTRS from production to test

Post by massimobianchi »

Dear all,
i want to copy production OTRS to test.

I have a test environtment, but it has gone far from production, so I'm willing to refresh it.

I am puuting down some steps, any advice on missing actions ?

Environtment: OTRS 3.1.0 / ITSM 3.1.6 on Centos 6.3 / Mysql / Apache (LAMP)

Preparatory steps
On test:
- take note os users for binding to ldap or other db sources
- stop sendmail or any other outgoing email handler
- stop cron for otrs
- take a backup of Config.pm
- take a full backup
- clean otrs test

Execution:
on test
- take backup on production
- restore database and configuration
DO NOT START HTTPD or OTRS

Post Activities:
on test
- disable any POP3 configured account (truncate table mail at db level)
- change user for connecting to AD (taking values from saved ones)
- change OTRS ID (how to with httpd down ????)
- disable event handling (to prevent email sending to real customers) (how to with httpd down ???)
- start sendmail or any other outgoing email handler
- start cron for otrs
START HTTPD and OTRS


any hint/help is appreciated
Last edited by massimobianchi on 07 Sep 2012, 17:09, edited 1 time in total.
Massimo Bianchi
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: copy OTRS from production to test

Post by crythias »

massimobianchi wrote:change OTRS ID (how to with httpd down ????)
You can put the values in Config.pm or modify (I know, I know) ZZZAAuto.pm manually
$Self->{SystemID} = 10;
$Self->{'SendmailModule::Host'} = 'mail.example.com';

I don't know why (necessarily) you will want to re-enable send on test, but certainly if you disable *how* you send, you can feel confident that it won't send even if it tries to.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
massimobianchi
Znuny newbie
Posts: 67
Joined: 02 Apr 2012, 12:18
Znuny Version: 3.1.14
Real Name: Massimo Bianchi
Company: NPO Sistemi S.p.A.
Contact:

Re: copy OTRS from production to test

Post by massimobianchi »

Thanks for the hints.

Regarding email, i will re-enable it because I want to test the full handling of the tickets, and the email exchange is the ground of otrs logic.

I will leave this thread opened for a while, hoping to get some other suggestion.
Massimo Bianchi
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
massimobianchi
Znuny newbie
Posts: 67
Joined: 02 Apr 2012, 12:18
Znuny Version: 3.1.14
Real Name: Massimo Bianchi
Company: NPO Sistemi S.p.A.
Contact:

Re: [SOLVED] copy OTRS from production to test

Post by massimobianchi »

some additions:

re-creating scratch database for reloading: "CREATE DATABASE `otrs` DEFAULT CHARACTER SET utf8"
avoiding download of POP3 configured account: "truncate table otrs.mail_account;"
Massimo Bianchi
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
Post Reply