Thanks, David.  You are correct.  Someone else pointed me in the direction of 
passing the variable as an array of drive letters rather than a string, which 
works correctly.

-----Original Message-----
From: ADSM: Dist Stor Manager <ADSM-L@VM.MARIST.EDU> On Behalf Of David Bronder
Sent: Wednesday, September 23, 2020 11:22 AM
To: ADSM-L@VM.MARIST.EDU
Subject: Re: [ADSM-L] Need help using Powershell to create custom backup 
commands

Because you have the volume list variable quoted, I think that part of the 
command actually translates to the single string "G: H: I: J:" rather than a 
list of drive letters.  Which I think would be interpreted as G:"\ H: I: J:".


On 9/23/20 8:21 AM, Schaub, Steve wrote:
> 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
>

--
Hello World.                                David Bronder - Systems Architect
Segmentation Fault                                      ITS-EI, Univ. of Iowa
Core dumped, disk trashed, quota filled, soda warm.   david-bron...@uiowa.edu

------------------------------------------------------------------------------
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