Skip to content

Instantly share code, notes, and snippets.

@jagland
Last active August 29, 2015 14:09
Show Gist options
  • Save jagland/5fdc2a5c077e787e379c to your computer and use it in GitHub Desktop.
Save jagland/5fdc2a5c077e787e379c to your computer and use it in GitHub Desktop.
VMWare VCB Backup Script
#!/bin/bash
PATH=$PATH:/usr/sbin
VCBSNAP="/usr/sbin/vcbSnapAll"
USERNAME=""
PASSWORD=""
HOST="vcenter"
DEST="/vmfs/volumes/nnnnnnnn-nnnnnnnn"
$VCBSNAP -h $HOST -u $USERNAME -p $PASSWORD -a powerstate:on -r $DEST -M 1
cp /usr/scripts/backup-vm.log $DEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment