Tips: Stop services before backing up

Sometimes it makes sense to stop a Windows service before the backup in order to start it again after the backup. This is easily done in Langmeier Backup.

To do this, use the following batch commands:

net stop "service-name"
net start "service-name"


Stops the server service:

net stop "server"

Starts the message service:

net start "message service"

Save these batch commands to a file with a .bat extension using the Windows editor. Then, in Langmeier Backup, go to Options -> Settings for this job and in the Before backup -> Run script section, deselect the file path for the batch file you just saved. For the service to be restarted afterwards write a separate batch file and select it in After backup -> Run script.

About the Author , Founder and CEO of Langmeier Software GmbH
Urs Langmeier Urs Langmeier is founder and CEO of Langmeier Software GmbH and thus responsible for the strategic further development of Langmeier software solutions.

Further lookup: Data backup, Backup, Windows Service

Articles relevant to the topic
Langmeier Backup Version 10 is here
FAT32 or NTFS? Which format is better for backup?
How to back up your hard drive properly and not forget anything

Post a comment here...

This article covers:
Batch Services
Stop service automatically for backup
Stop service with a batch file
Stop server services before backup
Langmeier Backup
What is a backup
Image Backup
Backup Server