We are in the works of scripting some of the clicks we have to do to create new repos for S3 compatible Storage.
We have found a way to create a new bucket in our TrueNAS server with S3 Powershell tools;
Code: Select all
Install-Module -Name AWSPowerShell -Force
Import-Module -Name AWSPowershell
Set-AWSCredential -AccessKey ACCESSKEYHERE -SecretKey SECRETKEYHERE -StoreAs default
New-S3Bucket -BucketName ictwebsolution -EndpointUrl https://URL:9000
But that's where the commands / guids end; https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=50
For example in their guide they speak about VBOAmazonS3Folder but others is example: VBOAmazonS3CompatibleConnectionSettings commands...
So we miss something I think, support is also checking it, but it takes to long.
Maybe someone already has a script and is willing to share.
So what we have after creating the bucket and run into issues now;
Code: Select all
$name = Read-Host -Prompt 'Input the name like S3-NAME'
$bucketname = Read-Host -Prompt 'Input the name for the folder in lowercase like: name'
$foldername = "veeam"
$account = Get-VBOAmazonS3CompatibleAccount -Id "S3AccountName"
$connection = New-VBOAmazonS3CompatibleConnectionSettings -Account $account -ServicePoint "ENDPOINTURL:9000"
$bucket = Get-VBOAmazonS3Bucket -AmazonS3CompatibleConnectionSettings $Connection -Name namehere
$folder = Add-VBOAmazonS3Folder -Bucket bucketnamehere -Name veeam
As you can see the commands for getting the bucket are different than the first two.
Please if you have a solution share!