Mon Oct 14, 2019 3:41 pm
Script config (Keys and password modified):
param($addr="127.0.0.1", $port=3261, $user="root", $password="password",
$deviceName="vtl1",
$tapeName="SWIIF001",# name (barcode) of the tape you are trying to upload to your cloud location;
$target="REPLICATION_TARGET_BACKBLAZE",
$accessKey="0044420c6a8e506604400044ee",
$secretAccessKey="B857+MckNOmE544u11t244KBe3p344f",
$regionName="us-east-1",# not applicable to BackBlaze;
$containerName="YearlyArchive",# name of your bucket;
$keepLocal=0,# -1 stands for "do not delete tape from disk after uploading", 0 stands for "delete immediately after uploading", 1 stands for "delete in 1 day" and so on;
$keepInCloud=-1,# similar to $keepLocal, same logic applies;
$keepInStorage1=-1,# not applicable to BackBlaze; for tiered cloud providers this means the number of days the tape is kept in hot storage tier (above logic applies);
$keepInStorage2=-1,# not applicable to BackBlaze; for tiered cloud providers this means the number of days the tape is kept in cold storage tier (above logic applies);
$delayBeforeStart=0,# days before tape uploading starts; -1 stands for "do not upload", 0 - "upload immediately", 1 - "upload in 1 day" and so on;
$serviceUrl)# not applicable to BackBlaze;
Script Output:
PS C:\Users\min\Desktop\MyStarWindScripts> .\VTLReplicationSettings.ps1
Name : vtl1
DeviceType : VTL
DeviceId : 0x000001F7CA39D344
File :
TargetName : iqn.2008-08.com.starwindsoftware:svr.domain.com-targetvtl1
TargetId : 0x000001F7CA41C144
Size : 0
CacheMode : empty
CacheSize : empty
CacheBlockExpiryPeriod : empty
Exists : True
DeviceLUN : 0
IsSnapshotsSupported : False
Snapshots :
SectorSize :
State : 0
Tapes : System.__ComObject
AvailableSlots : 95
TransportSlots : 1
DriveSlots : 4
ImportExportSlots : 3
StorageSlots : 96
Slots : System.__ComObject
ReplicationSettings : System.__ComObject
DriveType : 8
Target : 0
AccessKey :
SecretAccessKey :
RegionName :
ContainerName :
KeepLocal : -1
KeepInCloud : -1
KeepInStorage1 : -1
KeepInStorage2 : -1
DelayBeforeStart : -1
ServiceUrl :
Index was outside the bounds of the array.