Here’s a script which can be used to create a scheduled file-based backup: If a specific day/s are desired, the input has to be of an array type. If a daily backup is desired, there’s no need for any input and it can be left ‘unset’. The scheduling recurrence configuration can be done in many ways through the ‘days’ property. For reference, performing this process in the UI creates a default ID of ‘default’. The Schedule ID input can be a string of your choosing. Much like the prior example, this one too has some caveats. The ‘Help’ property will be quite useful to create both specifications. Second, the specification which is similar to the prior example. This time, we see two inputs are required. Let’s now take a look at creating a scheduled backup job with PowerCLI.įollowing a similar process to the last task, we will want to use one of the services we found previously called: .backup.schedules Let’s first start with the process to perform a backup.įirst step, log in to the CIS Service for the VCSA: 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. This ability was actually released in vSphere 6.5. Did you know the vCenter Server Appliance (VCSA) has file-based backup options?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |