SEPM Server Database file Back up to another Server for tragedy recovery
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 Comments • Jump to latest comment
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)
Hi Srikanth,
This will store the backup in same server .
Thanks In Advance
Ashish Sharma
SEPM Knowledgebase Documents
Such a nice script
Would you like to reply?
Login or Register to post your comment.