Stopping Services for Backup

Stopping Services for Backup

Question:
As backup for a client, can I write a script in Exchange to shut down the service, copy all the data files to another drive, and then restart the service?

Answer:
You wouldn’t do that in Exchange, you’d do it with a scheduled batch file that shuts down the Exchange services.

Before I tell you how, however, let me point out that what you’re talking about doing is an “Offline” backup, which is really not the best way to do this. An offline backup doesn’t delete the log files and won’t automatically play back the residual log files in case of a disaster recovery situation.

If you’re not doing online backups, then one of two things is happening:

  1. Your log files are just building up and sooner or later you’re going to run out of disk space for them.

    or

  2. You have circular logging enabled, which is not ideal for disaster recovery.

Ask your client how much his Exchange data is worth. If it’s not worth $430, then why bother backing it up at all?

That said, if you really want to do it, create a batch file with these lines in it:

net stop "Microsoft Exchange Event Service" /y net stop "Microsoft Exchange Internet Mail Service" /y net stop "Microsoft Exchange Message Transfer Agent" /y net stop "Microsoft Exchange Information Store" /y net stop "Microsoft Exchange Directory" /y net stop "Microsoft Exchange System Attendant" /y

Or you could just write:

net stop "Microsoft Exchange System Attendant" /ynet stop "Microsoft Exchange System Attendant" /ynet stop "Microsoft Exchange System Attendant" /y

Skip the rest of them (since they’re all dependant upon the System Attendant and will be shut down when it is). Then do your backup and Net Start them all again. But I wouldn’t. 🙂

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes