Advertisement
killerbng

VMWare Backup Batch Script

Mar 16th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #setDate (convert yyyy/mm/dd to yyyymmdd)
  2. SET d=%date:~-4,4%%date:~-10,2%%date:~7,2%
  3.  
  4. #suspend
  5. "C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmrun" suspend "E:\\Virtual Machines\\VMWare Workstation VDIs\\OS\\OS.vmx"
  6.  
  7. #copy (merge below to one line)
  8. Robocopy.exe "E:\\Virtual Machines\\VMWare Workstation VDIs\\OS\\" "E:\\Virtual Machines\\VMWare Workstation VDIs\\OS-Backup\\"
  9. /e /np /eta /r:1 /w:1
  10. /log:C:\\Users\\killerbng\\Desktop\\VM-OS-%d%.txt
  11.  
  12. #restart
  13. "C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmrun" start "E:\\Virtual Machines\\VMWare Workstation VDIs\\OSn\\OS.vmx"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement