::xsbackup.bat ::Note-You must pass two parameters to this file ::when it executes: a user name and a password. ::Example- xsbackup.bat xsbackupuser P@ssword @echo off ::Adjust to the server name you wish to back up set server=xensrv1.bg.net set Today=%Date:~4,2%-%Date:~7,2%-%Date:~10,4% ::Edit the folder path for the appropriate backup location set File=D:\Backup\%server%_%Today%.xbk ::run backup xe -s %server% -u %1 -pw %2 host-backup file-name=%File%