uvbackup vs export

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

uvbackup vs export

Post by ivannavi »

Ever since we have installed DataStage we have been using Kim Dukes scripts to backup projects. But this involves the Windows box with client.
I have found the following topics:
viewtopic.php?t=88042&highlight=uvbackup
viewtopic.php?t=84913&highlight=uvbackup
viewtopic.php?t=110182

But I still don't quite understand why is uvbackup not recommended. What are the pros and cons?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I think mostly because only Ray actually uses it. :wink:

Honestly, I have no idea. For the longest time I didn't even know it existed, only learning of it here. Since then, I've just stuck with the 'traditional' client-based solution I've always done, exports of all projects. Mostly since I would know what to do with them in the event of an emergency, can't really say the same for a 'uvbackup'. And never really bothered to learn it, either.

Curious what other's experience with it has been, especially if they've had to recover something using it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Export. I do know how uvbackup works but prefer exports.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I prefer uvbackup because it gets all those files, like DSParams, that export misses.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I have a script for those.

Code: Select all

#!/usr/bin/ksh
# -----------------------------------------------------------------
# Script Name: KimBackupFiles.ksh
# -----------------------------------------------------------------
# Usage:
# KimBackupFiles.ksh y|n
# -----------------------------------------------------------------
# Change History 
# Who              When        What 
# ---------------  ----------  ------------------------------------
# Kim Duke         01/01/2005  Original Version
# -----------------------------------------------------------------
if [ $# -gt 0 ]
then
    DEBUG_SW=$1
else
    DEBUG_SW="n"
fi
if [ "${DEBUG_SW}" = "y" ]
then
   set -x
fi
# -----------------------------------------------------------------
cd $HOME
pwd
mkdir $HOME/SavedFiles
# -----------------------------------------------------------------
# dsadm home
# $HOME/bin
# -----------------------------------------------------------------
find bin -print | cpio -padmuv $HOME/SavedFiles
DSHOME=`cat /.dshome`
# -----------------------------------------------------------------
# $DSHOME/dsenv
# -----------------------------------------------------------------
cd $DSHOME
pwd
# -----------------------------------------------------------------
# $DSHOME/.developer.adm
# $DSHOME/.dsadmin
# $DSHOME/.dsbuildinfo
# $DSHOME/.dsrel
# $DSHOME/.odbc.ini
# $DSHOME/.prodmgr.adm
# $DSHOME/.profile
# $DSHOME/.uvconfig
# -----------------------------------------------------------------
cp .[a-z]* $HOME/SavedFiles
# -----------------------------------------------------------------
# $DSHOME/dsenv
# -----------------------------------------------------------------
cp dsenv* $HOME/SavedFiles
# -----------------------------------------------------------------
# $DSHOME/uvodbc.config
# -----------------------------------------------------------------
cp uvodbc* $HOME/SavedFiles
# -----------------------------------------------------------------
# $DSHOME/uvconfig
# -----------------------------------------------------------------
cp uvconfig* $HOME/SavedFiles
if [ "${DEBUG_SW}" = "y" ]
then
   echo "Press return \c"
   read dummy
fi
# -----------------------------------------------------------------
# $DSHOME/../Configurations
# -----------------------------------------------------------------
cd ..
pwd
find Configurations -print | cpio -padmuv $HOME/SavedFiles
if [ "${DEBUG_SW}" = "y" ]
then
   echo "Press return \c"
   read dummy
fi
# -----------------------------------------------------------------
# uvodbc.config files
# -----------------------------------------------------------------
cd Projects
pwd
find . -name uvodbc.config -print | cpio -padmuv $HOME/SavedFiles
if [ "${DEBUG_SW}" = "y" ]
then
   echo "Press return \c"
   read dummy
fi
# -----------------------------------------------------------------
# DSParams
# -----------------------------------------------------------------
find . -name DSParams -print | cpio -padmuv $HOME/SavedFiles
if [ "${DEBUG_SW}" = "y" ]
then
   echo "Press return \c"
   read dummy
fi
# -----------------------------------------------------------------
# .developer.adm
# .operator.adm
# .prodmgr.adm
# -----------------------------------------------------------------
find . -name '.[a-z]*' -print | cpio -padmuv $HOME/SavedFiles
if [ "${DEBUG_SW}" = "y" ]
then
   echo "Press return \c"
   read dummy
fi
# -----------------------------------------------------------------
# QualityStage/bin/qsenv
# -----------------------------------------------------------------
cd ../..
cd QualityStage
pwd
cp ./bin/qsenv $HOME/SavedFiles
if [ "${DEBUG_SW}" = "y" ]
then
   echo "Press return \c"
   read dummy
fi
cd $ORACLE_HOME/network/admin
cp tnsname* $HOME/SavedFiles
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I don't need one! 8)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

Well, I guess I'll have to answer this myself:
-I know how to use export, so I will keep using it.
-I don't know how to use uvbackup, so I will not use it.
:roll:
Post Reply