vCloudBackups provides a way to hot clone VMs and vApps running in a Virtual Datacenter for the purpose of local backups.
This release should work with any vCloud Provider running 1.5 or 5.1.
# Jekyll Rake tasks | |
desc 'create new post or page. args: type (post, page), title, future (# of days)' | |
# rake new type=(page|post) future=0 title="New post title goes here" slug="slug-override-title" | |
task :new do | |
require 'rubygems' | |
require 'chronic' | |
type = ENV["type"] || "post" | |
title = ENV["title"] || "New Title" |
/ | |
Changelog.txt: text/plain; charset=us-ascii | |
EndScript.ps1: text/plain; charset=utf-8 | |
GlobalVariables.ps1: text/plain; charset=utf-16le | |
Headers: application/x-directory; charset=binary | |
Plugins: application/x-directory; charset=binary | |
README.md: application/octet-stream; charset=binary | |
Select-Plugins.ps1: text/plain; charset=us-ascii | |
Styles: application/x-directory; charset=binary | |
vCheck.ps1: text/plain; charset=utf-16le |
<?xml version="1.0" encoding="UTF-8"?><vcloud:EdgeGateway | |
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" | |
name="gateway" | |
operationKey="operationKey"> | |
<vcloud:Description>Edge Gateway description</vcloud:Description> | |
<vcloud:Configuration> | |
<vcloud:BackwardCompatibilityMode>false</vcloud:BackwardCompatibilityMode> | |
<vcloud:GatewayBackingConfig>compact</vcloud:GatewayBackingConfig> | |
<vcloud:GatewayInterfaces> | |
<vcloud:GatewayInterface> |
$vms = get-civm | |
$objects = @() | |
foreach($vm in $vms) | |
{ | |
$hardware = $vm.ExtensionData.GetVirtualHardwareSection() | |
$diskMB = (($hardware.Item | where {$_.resourcetype.value -eq "17"}) | %{$_.hostresource[0].anyattr[0]."#text"} | Measure-Object -Sum).sum | |
$row = New-Object PSObject -Property @{"vapp" = $vm.vapp; "name"=$vm.Name;"cpuCount"=$vm.CpuCount;"memoryGB"=$vm.MemoryGB;"storageGB"=($diskMB/1024)} | |
$objects += $row | |
} |
#Get the dvSwitch I want to edit | |
$dvswitch = Get-VirtualSwitch name dvSwitch -distributed | Get-View | |
#create the spec, note the object type | |
$spec = New-Object VMware.Vim.DVSConfigSpec | |
$spec.configVersion = $dvswitch.Config.ConfigVersion | |
$spec.defaultPortConfig = New-Object VMware.Vim.VMwareDVSPortSetting | |
$spec.defaultPortConfig.uplinkTeamingPolicy = New-Object VMware.Vim.VmwareUplinkPortTeamingPolicy | |
#policy |
$datastore = "MyDatastore" | |
$viserver = "MyVIServer" | |
# add PowerCLI snapin | |
Add-PSSnapin vmware.vimautomation.core -ErrorAction:SilentlyContinue | |
# Connect to VI Server | |
Connect-VIServer $viserver | |
# Get the datastore we want to clean up |
function Export-VM | |
{ | |
param | |
( | |
[parameter(Mandatory=$true,ValueFromPipeline=$true)] $vm, | |
[parameter(Mandatory=$true)][String] $destination | |
) | |
$ovftoolpaths = ("C:\Program Files (x86)\VMware\VMware OVF Tool\ovftool.exe","C:\Program Files\VMware\VMware OVF Tool\ovftool.exe") | |
$ovftool = '' |
# Example with basic types | |
--- | |
hash: | |
string: some text | |
number: 12345 | |
array_of_bool: [on, off, true, false, yes, no] | |
ruby symbol: :symbol | |
array: | |
- item one | |
- item two |
I hereby claim:
To claim this, I am signing this object: