Hi there,
I'm testing vmware 2.0.1 on both Linux and Windows platform. Om Linux there is no problems for me with backup, but on Windows 2003 R2 server I'm having difficulties.
My ini file:
;
; DO NOT include trailing \ (slash)
; IP of host, if the script is running on same PC as vmserver put https://127.0.0.1:8333/sdk
HOST=https://127.0.0.1:8333/sdk
; Name of VM (vmx)
VMNAME=SBS_2003_server
; Path to VM root
VMROOTPATH=C:\Virtual Machines
; VM dir name
VMDIR=SBS_2003_Server
; Username with permissions over vmServer
USER=Administrator
; Password
PASS=PASSWORD
; Name of datastore enclosed in [ ] ie [Virtual Machines in d]
DATASTORE=[standard]
; Temp working dir for files
TEMPDIR=C:\backuptemp
; Dir to copy compressed archive to
BACKUPDIR=C:\backups\Virtual Machines
; Path to vmWare VIX API folder, normally "C:\Program Files\VMware\VMware VIX"
VIX=C:\Program Files\VMware\VMware VIX
; Path to robocopy
ROBOCOPY=C:\Program Files\Windows Resource Kits\robocopy.exe
; Path to 7Z CLI
COMPRESS=C:\Program Files\7-Zip\7z.exe
; Path to log files
LOGS=C:\vmpub\backup_log
My run.bat:
@echo off
SET INI=SBS_2003_Server.ini
setlocal enableextensions
for /f "tokens=2 delims==" %%? in ('find /i "VMNAME" ^< %INI%') do set VMNAME=%%?
if "%VMNAME:~0,1%" equ " " set VMNAME=%VMNAME:~1%
for /f "tokens=2 delims==" %%? in ('find /i "LOGS" ^< %INI%') do set LOGS=%%?
if "%LOGS:~0,1%" equ " " set LOGS=%LOGS:~1%
echo Backup of %VMNAME% started @ %TIME% on %DATE%
for /f "tokens=1,2,3 delims=/- " %%x in ("%date%") do set DATESTAMP=%%z%%y%%x
backup.bat >> "%LOGS%\%VMNAME%\%VMNAME%_%DATESTAMP%.txt"
Echo Completed @ %TIME% on %DATE%
pause
Can you see where I'm making the error