Scheduling job backup

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Ahimsa
Premium Member
Premium Member
Posts: 78
Joined: Fri Aug 18, 2006 11:05 pm

Scheduling job backup

Post by Ahimsa »

Is there a way to SCHEDULE backup of job designs and routines.

Currently, I go to DataStage Manager and select job to take the backup.
So instead of doing this manually everyday, is there a way to schedule a backup ?

Many thanks!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Go to Kim Duke's website and download the backup script you'll find in his Tips & Tricks section. It will export and date-stamp every Project on the server you attach to automagically - and you can schedule it. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Apotluri
Premium Member
Premium Member
Posts: 25
Joined: Sun Dec 25, 2005 10:38 pm

Post by Apotluri »

How to use it? any idea? just run the DataStageBackup.bat file??
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

There's nothing destructive about the script, so go ahead and try it - You'll get a helpful usage message:

Code: Select all

DataStage Automated Backup Routine

Based on design by Manoli Krinos 

Modified by M Ruland to allow iteration through a 
complete server set of projects

Also Modified by T.J. Griesenbrock to utilize command 
line options.

Usage: DataStageBackup SERVER USERNAME PASSWORD BASE_DIR PROJECT_LIST

SERVER - Hostname
USERNAME - Username to use on SERVER.
PASSWORD - Associated password for USERNAME on SERVER.
BASE_DIR - Scripts, Backup directory below this.  MUST be a pre-existing directory.
PROJECT_LIST - MUST be a pre-existing directory.
You can schedule this (Control Panel -> Scheduled Tasks) to run as often as you like, but make sure it's run at a time when it's unlikely that a user will be connected to the project as any locked jobs will not be exported.

For example, on my current project, I could easily schedule the backup to begin at 9am with no adverse consequences on the development team! ;-)

J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Post by manuel.gomez »

so interesting!!!!
Post Reply