Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 6282

Including Related Drives when adding image job with vb script

$
0
0
I need a solution

Is there a way to inlude the System Reserved Related Drive when adding an image job with vb script?  The file is created when defining the back-up job manually.

    '-----------------------------------------------------------------------------------------
    ' Step 7: Create an image job.
    ' Parameters used:  DisplayName - specify a display name for the image job
    '                   Description - specify a description for the image job
    '                   IncrementalSupport -  true/false
    '                   RunOnce - true/false
    '                   Compression types
    '                        IMAGE_COMPRESSION_LOW    
    '                        IMAGE_COMPRESSION_MEDIUM    
    '                        IMAGE_COMPRESSION_HIGH    
    '                        IMAGE_COMPRESSION_NEWMEDIUM
    '-----------------------------------------------------------------------------------------
    
    Set oImageJob = CreateObject("Symantec.VProRecovery.ImageJob")
    oImageJob.DisplayName = "Backup of C"
    oImageJob.Description = "Regular backup image of my system volume."
    oImageJob.IncrementalSupport = false
    oImageJob.RunOnce = false
    oImageJob.Compression = oImageJob.Constants.ImageCompressionLow
    oImageJob.Reason = oImageJob.Constants.ImageReasonAutomatic
    oImageJob.Volumes = Array(pVolume)
    'oImageJob.Volumes = Array(arr)
    oImageJob.Task = oTask
    oImageJob.Location(oVolumeSys.ID) = oLocation
    oImageJob.Location(oVolumeC.ID) = oLocation
    oImageJob.Quota=1

    '-----------------------------------------------------------------------------------------
    ' Step 8: Add the image job to the list of jobs.
    '-----------------------------------------------------------------------------------------
    
    Call v2iAuto.AddImageJob(oImageJob)
    WScript.Echo "Image Job added successfully."

  


Viewing all articles
Browse latest Browse all 6282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>