Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.