Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Scripted approach to archives and backup
Topic Summary: Does DOORS support a Synergy style, backup operation?
Created On: 23-Nov-2006 12:07
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 23-Nov-2006 12:07
User is offline View Users Profile Print this message


Jonathan Haigh

Posts: 1
Joined: 22-May-2006

Hi,

I'm planning a migration to DOORS8 from 7.1, and want to get a bit more hands on with the administration of DOORS as well. Is there anyway to script a nightly backup operation whereby the DOORS database is archived to the server and the file then backed up using the backup tool to tape?

In Synergy I use the ccmdb backup option through a script that runs out of hours, this way the database gets an integrity check and is then packed to an archive file in a seperate partition/directory before backing up the .cpk file(s) (Partly to do with not trying to backup a live Informix DB). Can I acheive this in DOORS, would it have to be done by using a dxl script to do the archive to the server bit, triggered by running DOORS in batch mode from a script?

Regards

J
Report this to a Moderator Report this to a Moderator
 23-Nov-2006 12:16
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Yes, I have implemented this for some customers. In DOORS you can archive Project folders into DPA files, and you can develop such a batch mode script that it runs through all the Projects in the database and then archives each to a defined location. This script can be started by some scheduler.

Two problems with this approach:
- DOORS Folders at the uppermost level in the database are not archived, but subprojects inside them are (as the archiving operation is only possible for Projects)
- If a Project is locked for some reason, it will be not included in the archive run

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 29-Nov-2006 21:44
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Your script will need to examine the lockList and remove all the locks first; tough luck for the guy who's editing a module and goes home. The "for Project in database" loop finds all projects that have no parent project. Fortunately when you archive such a project you automatically get all ITS subordinate projects, and thus get all the Projects.

Project Archives are not particularly useful as backup tools. Be sure to back up the file system in ways that have nothing to do with DOORS.

- Louie
Report this to a Moderator Report this to a Moderator
 12-Mar-2007 18:08
User is offline View Users Profile Print this message


Chris Annal

Posts: 36
Joined: 14-Dec-2005

Hi All,

I was deeply interested in the response to this question, but I don't see the script that is mentioned as solving this user's dilemma. I'm pretty sure I can modify it to archive only the projects I need archived on a regular basis, once I get started with it.

Thanks,

Chris Annal
Report this to a Moderator Report this to a Moderator
 14-Mar-2007 17:25
User is offline View Users Profile Print this message


Chris Annal

Posts: 36
Joined: 14-Dec-2005

Nevermind. I figured it out from the help files. It's actually a pretty simple script, which would look like the following, with your actual Project name replacing "project_name" below. For each additional project you want to add, just copy the 5 lines of code below, replacing the "project_name" accordingly, then replace the number after message, incrementing it for each project you want to add.
//archive projects
string message1 = archive ("project_name","c:\\DOORS_Projects\\project_name.dpa", false)
if (!null message1) {
    ack message1
    halt
}
string message2 = archive ("another_project","c:\\DOORS_Projects\\another_project.dpa", false)
if (!null message2) {
    ack message2
    halt
}
//Note: In the above script the "C" drive was the destination, but any network drive would work, too.

Thanks,
Chris Annal
chrisa@sensis.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.