I'm using PS to kick off custom backups and having trouble passing a list of 
volumes to the incremental backup command in dsmc.

Here is what the powershell statement looks like, the "$myBackupVolumeList" 
variable is a string derived from an array:
& .\DSMC.exe Incremental "$myBackupVolumeList" "-Optfile=$myClusterOptFile" | 
Out-File -Encoding ASCII -filepath "$myTSMLogDetail" -Append

The command translates to this:
c:\program files\tivoli\tsm\baclient\dsmc.exe Incremental G: H: I: J: 
-Optfile=cluster.opt

Here is what shows up in the normal backup log:
IBM Spectrum Protect
Command Line Backup-Archive Client Interface
  Client Version 8, Release 1, Level 4.0
  Client date/time: 09/21/2020 15:52:11
(c) Copyright by IBM Corporation and other(s) 1990, 2017. All Rights Reserved.
Node Name: WNFC0310
Session established with server TSMN02: AIX
  Server Version 8, Release 1, Level 9.200
  Server date/time: 09/21/2020 15:52:12  Last access: 09/21/2020 15:41:03
Incremental backup of volume 'G: H: I: J:'


So it looks like it should work, but it fails with this error in the 
dsmerror.log:
ANS1076E The specified directory path 'G:\ H: I: J:' could not be found.

I have been unable to figure out where the stray backslash is coming from, any 
help would be appreciated.

Steve Schaub
Senior Platform Engineer II, Backup & Recovery
BlueCross BlueShield of Tennessee



------------------------------------------------------------------------------
Please see the following link for the BlueCross BlueShield of Tennessee E-mail 
disclaimer:  
https://www.bcbst.com/about/our-company/corporate-governance/privacy-security/email-policy.page
 
<https://www.bcbst.com/about/our-company/corporate-governance/privacy-security/email-policy.page>
------------------------------------------------------------------------------

This email was sent by "Schaub, Steve" <steve_sch...@bcbst.com> securely using 
Transport Layer Security (TLS).

Reply via email to