![]() ![]() $backupSpec.location_password = "VMware1!" ![]() Second, each of the password parameters require a special type in order to be accepted. First, the ‘parts’ parameter is expecting an input of an array type. We can now fill in each of the parameters with information for our environment. We can use ‘Help’ to help us form the input for the backup job with the following command: $ First, the ‘create’ method which we’ll use to actually create the backup job. To see the method we are going to use, take that variable and pipe it to ‘Get-Member’ $backupJobSvc = Get-CisService -Name .backup.jobĪs part of the respose, we’ll see two important items. We will store that into a variable so we can easily interact with that specific service. Next, we need to find the appropriate service to perform a backup: Get-CisService -Name \*backup\*īased on the output, we will want the ‘.backup.job’ service. First step, log in to the CIS Service for the VCSA: Connect-CisServer -Server Let’s first start with the process to perform a backup. Since the CIS module is a low-level module, let’s see a couple examples of this in action. To perform a file-based backup with PowerCLI, we’ll need to make use of the CIS module. Users with the ‘SystemConfiguration.Administrators’ permission are able to perform all of the following tasks through the API and PowerCLI! Under the covers, both of these actions are served up by vSphere’s RESTful APIs and therefore PowerCLI can also be used to automate these actions! One other benefit of using the API, you don’t have to hand out the root credentials. Recently, my teammate, Emad Younis released a couple cool walkthroughs to the vSphere Central site to manage file-based backup and restore actions. I’m happy to say that as part of vSphere 6.7, the VCSA received a backup scheduler! However, there was one feature in particular that was missing: a scheduler. Did you know the vCenter Server Appliance (VCSA) has file-based backup options? This ability was actually released in vSphere 6.5.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |