Archive datasets using tar unix command

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
vuluvala
Participant
Posts: 7
Joined: Tue Jul 22, 2008 10:47 am

Archive datasets using tar unix command

Post by vuluvala »

Hi,
We have been having problem with accessing the archived datasets. We are using unix tar command as follows to archive the datasets on daily basis.

tar -cvf ${ARCHIVE_DIR}/${PROCESS_DATE}/stage.${BDATE}.tar -C ${STAGE} ./

All the datasets are written to sub-directories under ${STAGE} directory by the ETL jobs. I realized that I have to use orchadmin command but not sure how to make it work with tar command. Could you please give me some direction on how to archive the datasets using tar command so that we can retrieve the datasets when required.

Thanks
vuluvala
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First off, how about explaining what the "problem with accessing the archived datasets" you've been having is?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You have been (successfully) archiving the dataset descriptors; but the actual data resides in the location(s) pointed to by the disk resource in your active APT_CONFIG file.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hard to say, one way or the other, just from what was posted. Time will tell.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply