# Backup and Restore

### Location of backup files

{% hint style="info" %}
Navigate to **Settings -> Backup & Restore > Backups**
{% endhint %}

All backups are stored in a centralized directory on your server: `/opt/phishing/backups`. Backups and exports are displayed in the dashboard under **Settings -> Backup & Restore**.&#x20;

<figure><img src="/files/t4OT0ppQtf0i0kXYzNmI" alt=""><figcaption><p>Here you can view, download, and delete your backups and exports.</p></figcaption></figure>

***

### What data can I back up?

You can create backups of your campaigns and templates from the dashboard by selecting the object you want to backup and then selecting "Backup" from the Actions menu:

{% tabs %}
{% tab title="Campaigns" %}

<figure><img src="/files/WISmsnLSDhVWkBxJmGIk" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
A campaign backup is a tar.gz archive that contains the following:

* Campaign settings and statistics.
* Email and Landing Page templates.
* LUCY version info.
  {% endhint %}
  {% endtab %}

{% tab title="Templates" %}

<figure><img src="/files/uGBJgS8twZw9yEZpr5Nl" alt=""><figcaption><p>You can backup Attack, Awareness, Attachment (File), and Report templates. </p></figcaption></figure>

{% hint style="info" %}
A template backup is a .tar.gz archive that contains the following:

* Email and Landing Page files (html, css, javascript files).
* Static assets (like images and videos).
* SCORM data (if the template is SCORM-compatible).
  {% endhint %}
  {% endtab %}
  {% endtabs %}

***

### Restoring backups

You can restore backups to any LUCY server with the same Actions menu.\*

Just select "Restore" and then select the template's archive from your file browser.

{% hint style="warning" %}
\*Backups should be restored on a server running the same LUCY version as the one used to create the backup. Avoid mixing different versions to prevent compatibility issues.
{% 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://wiki.lucysecurity.com/application-reference/settings/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.
