Backup Script vCenter Server & SSO

am Mrz 18, 2013 in batch, Scripting

Ich benutze dieses Script, um die Datenbank (SQL-Express) des vCenter Servers und VMware SSO zu sichern: @echo off SET Server=[servername] REM Archivformat festlegen, 7zip oder zip: SET ARCHIVFRMT=7z SET VMWARESSO=vim_sqlexp SET VMWARESSODEST=C:BKPDBVMwareSSoRSA.bak SET VMWARESSODESTPATH=C:BKPDBVMwareSSo SET VMWARESSOSQL=C:Installsrcvmware-sso.sql set prg64="C:Program FilesMicrosoft SQL Server100ToolsBinnSQLCMD.EXE" set prg64path="C:Program FilesMicrosoft SQL Server100ToolsBinn" REM Falls x64-Managementstudio: c: cd /d %prg64path% sqlcmd -E -S %server%%VMWARESSO% -i %VMWARESSOSQL% move /Y %VMWARESSODEST% %VMWARESSODESTPATH%VMWARESSO-RSA-%date%.bak "%programfiles%7-Zip7z.exe" a %VMWARESSODESTPATH%VMWARESSO-RSA-%date%.%ARCHIVFRMT% %VMWARESSODESTPATH%VMWARESSO-*.bak erase %VMWARESSODESTPATH%VMWARESSO-*.bak SET VMWAREVCENTER=vim_sqlexp SET VMWAREVCENTERDEST=C:BKPDBvCenterServerVIM_VCDB.bak...