Created
November 2, 2011 01:24
-
-
Save joet3ch/1332584 to your computer and use it in GitHub Desktop.
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 | |
logger System VM Weekly Snapshot Begin | |
vmrun snapshot /dir/to/vm/images/image_name.vmx weekly_auto_backup | |
vmrun snapshot /dir/to/vm/images/image_name.vmx weekly_auto_backup | |
mount /dev/name /mnt/location | |
rsync -avg --ignore-errors /dir/to/vm/images/ /mnt/location/VM-BACKUP/ | |
umount /dev/name | |
logger System VM Weekly Snapshot Complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment