Though CS2010 or Wave "14" is coming out, I hope these scripts can help some people that still have OCS 2007 R1 or R2 in their environment.
Location of the scripts: C:\OCSBackup on the respective servers.
This single batch file was placed on FECBA03 (backups up all servers in the domain as well as global and pool settings then dumps them onto \\fileshare\c$\OCSBackups\R2\)
-----
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:global,pool /configfile:c:\OCSBackup\globalPoolLevelBackup.xml /poolname:bapool02
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\fecba03.xml /fqdn:fecba03.domain.ca
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\fecba04.xml /fqdn:fecba04.domain.ca
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\medba03.xml /fqdn:medba03.domain.ca
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\medba04.xml /fqdn:medba04.domain.ca
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\cwaba01.xml /fqdn:cwaba01.domain.ca
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\arcba02.xml /fqdn:arcba02.domain.ca
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\monba01.xml /fqdn:monba01.domain.ca
copy c:\OCSBackup\*.* \\fileshare\c$\OCSBackups\R2\
pause
-----
Script located on EGCBA01 which is the edge server (backups itself and dumps it locally on C:\OCSBackup) – Needs to be copied to the a fileshare server.
-----
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\egcba01.xml /fqdn:EGCBA01
pause
-----
Script located on EGCBA02 which is another edge server (backups itself and dumps it locally on C:\OCSBackup) – Needs to be copied to the a fileshare server.
-----
c:\"Program Files\Common Files\Microsoft Office Communications Server 2007 R2"\lcscmd.exe /config /action:export /level:machine /configfile:c:\OCSBackup\egcba02.xml /fqdn:EGCBA02
pause
-----
No comments:
Post a Comment