Endpoint Protection

 View Only

SEPM Server Database file Back up to another Server for tragedy recovery 

Jan 23, 2012 12:18 AM

Creating Script for SEPM Server Database file Back up to another Server for tragedy recovery

 

*********************SEPM Server Database file Back up to another Server for tragedy recovery**********************************

@for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do @set dt=%%l-%%j-%%k-%%i
@for /f "Tokens=1" %%i in ('time /t') do @set tm=-%%i
@set tm=%tm::=-%
@set dtt=%dt%%tm%
@echo Copying backup set: %dtt%.
@echo Please wait..

@if not exist C:\Symantecbackup\SymantecDBBackup\ mkdir C:\Symantecbackup\SymantecDBBackup\
@cd /D C:\Symantecbackup\SymantecDBBackup\
Net stop ASANYs_sem5                    **************Stop the Symantec Embedded Database Service********************
Copy "C:\Program Files\Symantec\Symantec Endpoint Protection Manager\db\sem5.db" "C:\Symantecbackup\SymantecDBBackup\"
@ren sem5.db "sem5-%dtt%.db"            ***Save the report for data formate***
Net start ASANYs_sem5                   ***Start the Symantec Embedded Database Service****


*******************************************************************************************************************************

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Dec 28, 2012 04:17 PM

Such a nice script

Jan 30, 2012 02:57 AM

Hi Srikanth,

 

This will store the backup in same server .

 

Jan 30, 2012 01:41 AM

This will store the backup in same server another drive or another server?

Related Entries and Links

No Related Resource entered.