Setup Guide
50 Best Practices
if "%3" == "" goto error
set hh=%time:~0,2%
if %time:~0,1%=="" set hh=0%hh:~1,1%
set timestamp=
%date:~10,4%%date:~4,2%%date:~7,2%_%hh%%time:~3,2
%%time:~6,2%
"C:\Program Files\Citrix\XenCenter\xe.exe" -s %1 -
u %2 -pw %3 host-backup file-name=
%1_%timestamp%.xbk
goto end
:error
echo usage is ^"backup ^<hostname or IP^>
^<username^> ^<password^>^"
pause
:end
exit
3
Create a
Scheduled Task
. In the
Run
field, enter the path to the batch file
followed by the hostname or IP address, username, and password. For
example:
c:\backup\backup.bat 172.17.40.70 root
rootpassword
Enter the directory you created in step 1 in the
Start in
field.










