<commit_before>---
title: How to backup ServiceControl database
summary: How to backup the ServiceControl RavenDB Embedded instance
tags:
- ServiceControl
- RavenDB
- Backup
---
ServiceControlo utilizes, as storage backend RavenDB Embedded, in order to backup ServiceControl data proceed as following.

### Backup

* Stop the ServiceControl service;
* copy the ServiceControl data directory, that by default is located in `%SystemDrive%\ProgramData\Particular\ServiceControl\localhost-33333`;
* Start the ServiceControl service;

**note**: the default database location will change if ports and host names are customized.

### Restore

* Stop the ServiceControl service;
* copy the previouly backed-up data into the ServiceControl data directory, that by default is located in `%SystemDrive%\ProgramData\Particular\ServiceControl\localhost-33333`;
* Start the ServiceControl service;

### Important Notes

The backup method outlined above requires ServiceControl service to be stopped during this time ServiceControl data collection is paused and no connections can be made from ServicePulse, ServiceInsight or any custom software that depends on the ServiceControl API endpoints.

Due to the nature of messaging, and ServiceControl is no exception, messages directed to ServiceControl will remain in its queues until the service is restarted, as soon as ServiceControl service is restared normal messages processing is restored and all the pending messages will be processed, without loosing any information.<commit_msg>small fixes, Simon comments.<commit_after>---
title: How to backup ServiceControl database
summary: How to backup the ServiceControl RavenDB Embedded instance
tags:
- ServiceControl
- RavenDB
- Backup
---
ServiceControl relies, as storage backend, on RavenDB Embedded, in order to backup ServiceControl data proceed as following.

### Backup

* Stop the ServiceControl service;
* copy the ServiceControl data directory, that by default is located in `%SystemDrive%\ProgramData\Particular\ServiceControl\localhost-33333`;
* Start the ServiceControl service;

**note**: the default database location will change if ports and host names are customized.

### Restore

* Stop the ServiceControl service;
* copy the previouly backed-up data into the ServiceControl data directory, that by default is located in `%SystemDrive%\ProgramData\Particular\ServiceControl\localhost-33333`;
* Start the ServiceControl service;

### Important Notes

The backup method outlined above requires ServiceControl service to be stopped during this time ServiceControl data collection is paused and no connections can be made from ServicePulse, ServiceInsight or any custom software that depends on the ServiceControl API endpoints.

Due to the nature of messaging, messages directed to ServiceControl will remain in its queues until the service is restarted, as soon as ServiceControl service is restared normal messages processing is restored and all the pending messages will be processed, without loosing any information.
{'fraction_non_alphanumeric': 0.04897418927862343, 'fraction_numerical': 0.0066181336863004635, 'mean_word_length': 5.529157667386609, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6980709', 'n_tokens_mistral': 712, 'n_tokens_neox': 671, 'n_words': 372}