Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/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