# Backup and Restore

{% hint style="info" %}
Your email marketing software comes entirely self-contained inside of the edcom-install directory, making backups a breeze.&#x20;
{% endhint %}

**Backing up your platform**

Change directory to your installation and bring it down:

`cd /root/edcom-install`&#x20;

`docker compose down`

Make a copy of your edcom-install directory using the usual methods such as a tar file, scp, cloud backup software like SpiderOak, an external volume, etc.&#x20;

Once your backup is finished, bring it back up by running the following command in the edcom-install directory:

`./restart.sh`

**Restore from backup**

To restore from backup:

1. Make sure Docker is installed on the server following the [installation instructions](/docs/install/advanced-installation.md).
2. Simply unpack your backed up edcom-install directory onto your server somewhere.
3. Change directory to your installation, i.e. `cd /root/edcom-install` and run:

`./restart.sh`

{% hint style="info" %}
User data resides under **edcom-install/data** and **edom-install/config.** If you only back up those two directories you should also be able to do a complete restore at a later date by unpacking the latest installation archive and copying those directories into it afterward.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emaildelivery.com/docs/post-installation/backup-and-restore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
