Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dsmc retrieve replace option

Status
Not open for further replies.

J1gh2

MIS
Jul 7, 2004
109
GB
Hi Folks

I would like your help with the logic behind the replace option of dsmc retrieve.

When we issue the command

"dsmc retrieve -servername=$ADSMservername $PRESERVEPATH_OPT -replace=All -subdir=y -desc="$DD" "$DM_H" $RD"

we get the earliest file stored as in

5,906,120 B 10/04/07 11:01:25 /cls/audit/capture/20071003_prd25slp/pkgsicigt/FLSICIGTPLOG.DEL 10/05/20 20071003

whereas we actually want

7,855,853 B 10/04/07 14:52:46 /cls/audit/capture/20071003_prd25slp/pkgsicigt/FLSICIGTPLOG.DEL 10/05/20 20071003

Changing the command to

" dsmc retrieve -servername=$ADSMservername $PRESERVEPATH_OPT -replace=No -subdir=y -desc="$DD" "$DM_H" $RD"

seems to work but my my question is why does dsmc, when using the -replace=All flag retrieve the lastest file then overwrite it with an earlier file all in one call of the dsmc command. Is this how it should work?

Best regards
 
Replace=all means if it find any file pre-exists TSM will replace it with new file which search criteria gets.
THX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top