Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @echo off
  2. echo Enter the server from which to backup:
  3. set /p Server=
  4. echo Enter the path of the VM:
  5. set /p VmPath=
  6. echo Enter the username with which to login to Virtual Infrastructure:
  7. set /p User=
  8. echo Enter the password with which to login to Virtual Infrastructure:
  9. set /p Password=
  10. cls
  11. cd "%programfiles(x86)%vmwarevmware ovf tool"
  12. mkdir "C:vmbackup%vmPath%"
  13. ovftool.exe --acceptAllEulas --chunkSize=4480mb --diskMode=monolithicSparse "vi://%user%:%password%@%server%/%vmPath%" "C:vmbackup%vmPath%%vmPath:\=|%.ovf"
  14. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement