Skip to content

Instantly share code, notes, and snippets.

@joet3ch
Created November 2, 2011 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joet3ch/1332584 to your computer and use it in GitHub Desktop.
Save joet3ch/1332584 to your computer and use it in GitHub Desktop.
#!/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