FR

Hello,

An ARIS user who's not a full administrator needs to make an archive of his database regularly. He hasn't the rights to use the Admin tool to backup and restore the database.

So I've designed for him a script which makes a full copy of the database using the merge component.

But there's a problem in using the merge component for this purpose : the script copies one by one all the database elements which can take several hours and above all the script regularly fails (and it's hard to know when and why...)

So, does anybody have an idea of a more appropriate way to proceed the full copy of a database by script ?

Thanks in advance for your answers !

by Alexey Shmonov
Posted on Sun, 01/03/2016 - 22:30

I would schedule regular backup on server and then share the backup folder in read only mode, or you could even copy this backup somewhere by batch file.

0
by Simon Abildgaard
Posted on Wed, 01/06/2016 - 10:04

Instead of using the Merge component, use the ServerAdmin component like below:

    var dbAdmin = Context.getComponent("ServerAdmin");

    var activeDb = ArisData.getActiveDatabase();

    var file = new java.io.File("[path-to-backup-file]");

    var res = dbAdmin.backupDatabase(activeDb, file);

    if(!res){

        //backup was not successful!

    }

This will be as running the export database from Aris Architect.

0
by Fabienne ROSEC Author
Posted on Thu, 01/07/2016 - 09:41

Thank you both for your answers. I didn't know the ServerAdmin component - and I was hoping someone would know about such component so I'm very grateful for the idea.

I'll try it as soon as possible :-)

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • Profile picture for user frankweise
  • Profile picture for user Henrik Buckler
  • Profile picture for user UffeK
  • SS
  • MZ
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock