Skip to main content

 

Druva Documentation

Windows and Linux scripts to stop and start Druva inSync services

 

 

This article applies to:

  • OS: Windows and Linux
  • Product edition: inSync Cloud and On-Premises

Overview

You can use these scripts to start or stop Druva inSync services on a user device. These scripts are mostly used by back up software to take consistent backup of all the components of Druva inSync.

Scripts for Windows Master Server

Stop services

This script stops the inSync master server  services and make sure no inSync process is running in background. The services are also set to “Disabled” state. 
 
{Code}
sc config "inSyncConfigServerService" start= disabled
net stop inSyncConfigServerService
 
TIMEOUT -t 10
 
sc config "inSyncCPortalService" start= disabled
net stop inSyncCPortalService
 
TIMEOUT -t 10
 
sc config "inSyncSyncServerService" start= disabled
net stop inSyncSyncServerService
 
TIMEOUT -t 60
 
taskkill /f /im inSyncMaster.exe
taskkill /f /im CPortal.exe
taskkill /f /im inSyncNWorker.exe
taskkill /f /im inSyncWorker.exe
taskkill /f /im inSyncBynamo.exe
taskkill /f /im inSyncStorageMaster.exe
taskkill /f /im inSyncShareWebPanel.exe
taskkill /f /im inSyncCPortalSVC.exe
taskkill /f /im inSyncCMSPHwnet64.exe
taskkill /f /im inSyncAuthDBService.exe
taskkill /f /im inSyncBJService.exe
taskkill /f /im inSyncBJWorker.exe
taskkill /f /im inSyncConfigDBMonitor.exe
taskkill /f /im inSyncConfigDBServer.exe
taskkill /f /im inSyncCronServer.exe
taskkill /f /im inSyncConfigServer.exe
taskkill /f /im inSyncServer.exe
taskkill /f /im inSyncSyncServerSVC.exe
{Code}

Start services

This script starts the inSync services.

{Code}
sc config "inSyncConfigServerService" start= auto
net start inSyncConfigServerService

TIMEOUT -t 10

sc config "inSyncCPortalService" start= auto
net start inSyncCPortalService

TIMEOUT -t 10

sc config "inSyncSyncServerService" start= auto
net start inSyncSyncServerService
{Code}

Scripts for Windows Storage Node

Stop services

This script stops the inSync Storage Node services and make sure no inSync process is running in the background. The services are also set to “Disabled” state.

{code}
sc config "inSyncStorageServerService" start= disabled
net stop inSyncStorageServerService
 
TIMEOUT -t 60
 
taskkill /f /im inSyncNodeMaster.exe
taskkill /f /im inSyncNodeMasterCfg.exe
taskkill /f /im inSyncNodeMasterSVC.exe
taskkill /f /im inSyncBynamo.exe
taskkill /f /im inSyncStorageMaster.exe
taskkill /f /im inSyncWorker.exe
{Code}

Start services

This script starts the inSync Storage Node services.

{Code}
sc config "inSyncStorageServerService" start= auto
net start inSyncStorageServerService
{Code}

Scripts for Windows Edge Server

Stop services

 This script stops the inSync Edge Server services and make sure no inSync process is running in the background. The services are also set to “Disabled” state.

{Code}
sc config "inSyncEdgeServerService" start= disabled
net stop inSyncEdgeServerService
 
TIMEOUT -t 30
 
taskkill /f /im inSyncEdgeServer.exe
taskkill /f /im inSyncEdgeServerCfg.exe
taskkill /f /im inSyncEdgeServerService.exe
{Code}

Start services

This script starts the inSync Edge Server services.

{Code}
sc config "inSyncEdgeServerService" start= auto
net start inSyncEdgeServerService
{Code}

Scripts for inSync Client on Windows device

 Stop services

This script stops the inSync Client services and makes sure no inSync process is running in the background. The services are also set to “Disabled” state.

{code}
sc config "inSyncCPHService" start= disabled
net stop inSyncCPHService
 
TIMEOUT -t 40
 
taskkill /f /im inSync.exe
taskkill /f /im inSyncAgent.exe
taskkill /f /im inSyncCPHwnet64.exe
taskkill /f /im inSyncUSyncer.exe
{Code}

Start services

This script starts the inSync Client services on a Windows device.

{Code}
sc config "inSyncCPHService" start= auto
net start inSyncCPHService
{Code}

Linux environment

There are inbuilt scripts for Linux server to stop and start the inSync services.

Scripts for Linux Master Server

Stop services

This command stops the services of inSync Master Server.

{Code}
/etc/init.d/inSyncMasterAll stop
{Code}

Start services

This command starts the services of inSync Master Server.

{Code}
/etc/init.d/inSyncMasterAll start
{Code}

Scripts for Linux Storage Node

Stop services

 This command stops the services of inSync Storage Node server

{Code}
/etc/init.d/inSyncStorageAll stop
{Code}

Start services

This command stops the services of inSync Storage Node server

{Code}
/etc/init.d/inSyncStorageAll start
{Code}

Scripts for Linux Edge Server Node

Stop services

This command stops the services of inSync Storage Node server

{Code}
/etc/init.d/inSyncEdgeAll stop
{Code}

Start services

This command starts the services of inSync Storage Node server

{Code}
/etc/init.d/inSyncEdgeAll start
{Code}