Last active
August 29, 2015 14:09
-
-
Save jagland/5fdc2a5c077e787e379c to your computer and use it in GitHub Desktop.
VMWare VCB Backup Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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