migrate otrs from PROD to DEV

Moderator: crythias

Locked
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

migrate otrs from PROD to DEV

Post by rvaldomir »

Hi,

-OTRS web application on debian
-OTRS database Oracle 11g

does anyone knows how to move/propagate changes and migrate all the configurations from one environment to another?

Now I need to create a DEV environment with actual PROD configuration.

How to???
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: migrate otrs from PROD to DEV

Post by wurzel »

Hi,

read doc.otrs.org backup/restore or upgrade section.
There is no built-in function for transferring configuration devel -> test -> int -> prod environments.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

Re: migrate otrs from PROD to DEV

Post by rvaldomir »

Hi,

I already checked it but this will work only with Postrgress and MySQL, and I have Oracle.

I have disabled the DB backup and was able to extract the info, after that I recover a full database backup into a new schema in my DEV DB. My plan is to install OTRS from the scratch using this DB could be possible?

Other chance is to re-point my OTRS DEV to the new schema and run the restore.pl to restore the files.

What do you think?
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: migrate otrs from PROD to DEV

Post by wurzel »

Hi,

replace MySQL/Postgres/Oracle with $DATABASE it is always the same. Database is database.

then:
set up a new DEV machine (linux)
Install $DATBASE driver in your dev machine (for oracle Full Oracle Client)
set up a perl DBD connector for $DATABASE on dev machine (in your case DBD::Oracle)
dump $DATABASE from production
restore $DATABASE in dev
backup and restore OTRS configuration files (mentioned in doc.otrs.org) and reconfigure for dev host+database

if backup.pl/restore.pl is not working for oracle then use SQL dump and SQL restore with Oracle tools.

and yes, installing OTRS from scratch and/or pointing to new/old schema is possible.

read the READMES (install and database) files in /opt/otrs/

Cheers
Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
menkman
Znuny newbie
Posts: 27
Joined: 06 Apr 2015, 13:07
Znuny Version: 4.0.9

Re: migrate otrs from PROD to DEV

Post by menkman »

Hi,

what do you thing about virtualize the System?
If the Program and the Database located on the same physical System I think that's the best Practice.

Best
Claus
Locked