Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

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

Created: 22 Jan 2012 • Updated: 30 Jan 2012 | 3 comments
Language Translations
Ashish-Sharma's picture
+28 28 Votes
Login to vote

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****

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

Comments 3 CommentsJump to latest comment

Srikanth_Subra's picture

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

Thanks & Regards,

 Srikanth.S

"Defeat the Defeat before the Defeat Defeats you"
(Swami Vivekananda)

+1
Login to vote
Ashish-Sharma's picture

Hi Srikanth,

This will store the backup in same server .

Thanks In Advance

Ashish Sharma

+1
Login to vote