Book a Demo

Author Topic: Automation for DBMS to DBMS backup?  (Read 8622 times)

Christian Freihoff

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Automation for DBMS to DBMS backup?
« on: April 25, 2016, 07:07:39 pm »
We are running our repo on a ms sql database, the backup is just another database. We use the project transfer tool (DBMS to DBMS) to do the backup, but we would like to automate that.
Does anyone already have a scipt/tool available for this purpose?

If not, i am firm with java development and saw the projectTransfer method in the API documentation. But does this method also allow DBMS to DBMS?

Our version of SPARX EA is 12.0.1215, our project/repo has security enabled.

thanks in advance

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #1 on: April 25, 2016, 07:39:58 pm »
For a simple backup just use the native database tools. The project transfer is more meaningful if you transfer between different RDBMS.

q.

Christian Freihoff

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #2 on: April 25, 2016, 09:07:28 pm »
That's the point. At the moment, the target database is on the same system, but this will change and the target will be different. Additionally, we are quite ... no, very ... restricted regarding the tools we are allowed to install and we have no admin permissions on the databases. I.e., we can not just click in the MS SQL Server Management Studio. So, having some kind of automated project transfer in SPARX would be preferred ...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automation for DBMS to DBMS backup?
« Reply #3 on: April 25, 2016, 09:17:19 pm »
Christian,

You can use the operations in the API to transfer the project, that's no issue.
The problem is trying to run them on a server (without an actual user logged in)

Geert

Christian Freihoff

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #4 on: April 25, 2016, 09:40:32 pm »
Geert, with actual user You refer to the repo-security-user? Does the API not support these logins?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automation for DBMS to DBMS backup?
« Reply #5 on: April 25, 2016, 09:45:18 pm »
No I mean a Windows user needs to be logged on on the machine running the "backup" process.

Often on servers running batch jobs that is not the case, and it doesn't play nice with EA.

Geert

Christian Freihoff

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #6 on: April 25, 2016, 09:54:23 pm »
Ah, okay. The transfer is run on a usual client machine with win7, so this should not be the problem.

Has anyone already tried the projectTransfer method?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automation for DBMS to DBMS backup?
« Reply #7 on: April 25, 2016, 10:41:13 pm »
Ah, okay. The transfer is run on a usual client machine with win7, so this should not be the problem.

Has anyone already tried the projectTransfer method?

I haven't myself, but I know lots of people use it this way.

Geert

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #8 on: April 26, 2016, 03:38:55 am »
I posted a little PowerShell snippet that does exactly this below.

http://sparxsystems.com/forums/smf/index.php/topic,2708.msg222357.html#msg222357

Stan.

Christian Freihoff

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #9 on: April 26, 2016, 02:01:49 pm »
thanks, stan  :)

is there any documentation how to insert the database stuff as path?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automation for DBMS to DBMS backup?
« Reply #10 on: April 26, 2016, 06:53:41 pm »
In the Open dialog of EA right click on one existing repo and you find Edit connection string. That's the ODBC connection string you need.

q.