# Backup and restoration

* [How to clone a project](#how-to-duplicate-a-project)&#x20;
* [How to clone a flow within a project](#how-to-clone-copy-a-flow-within-a-project)&#x20;
* [How to restore a flow from a backup file](#how-to-restore-a-flow-from-a-file)&#x20;

**Why backups are essential**

It's easy to underestimate the importance of backups—until you need to restore from one. Since backups are free and unlimited, there's no reason not to use them regularly. If your bot contains complex logic that took significant time to build, maintaining regular backups is crucial for protecting your work.

## How to duplicate a project

**How backup (duplication) works:**

When a new project is created, it includes a complete copy of the bot's structure and settings. This includes:

* The bot's flow.
* All quick replies and text responses.
* CRM configuration and settings.

**Please note:** The actual CRM data (e.g., client records, deal information) is not copied to the new project.

{% hint style="info" %}
**What is copied:**

The new project includes a copy of all project settings.

**What is not copied:**

The following data is **not** transferred to the new project:

* Client and lead data
* Integrations (e.g., AmoCRM, Bitrix24)
* Mini-landing pages

This makes the feature ideal for selling pre-built bot templates. You can copy the project and provide it to a buyer, who can then safely connect their own accounts and data without accessing your confidential information.
{% endhint %}

Backup can be done in two ways.<br>

1. Simply click the **"Duplicate"** button on the **"Projects"** tab.

<div data-with-frame="true"><figure><img src="/files/FzKGIewwnxmoXfDdrC6w" alt="" width="375"><figcaption></figcaption></figure></div>

2. Create a new project and go to the **"Backup"** section:

<div data-with-frame="true"><figure><img src="/files/SIM9cIij9O91Rw5ukwOB" alt="" width="220"><figcaption></figcaption></figure></div>

Next, select the project from which you want to restore the data.

<div data-with-frame="true"><figure><img src="/files/oNiR4GGpn0WN6CeZOEoI" alt=""><figcaption></figcaption></figure></div>

Here, you can also download the bot flow (it will be saved as a .json file) and restore a copy from the selected project.

{% hint style="warning" %}
When restoring, the entire project flow will be deleted and replaced with the one copied from the selected project.
{% endhint %}

## How to clone (copy) a flow within a project

To copy a flow, go to the "Backup - Project restoration" tab and select "Copy workflow."

{% hint style="info" %}
Your flow will remain unchanged, and the flow from the selected project will be added alongside it.
{% endhint %}

<div data-with-frame="true"><figure><img src="/files/08nwpYstsx90jGA28kUf" alt=""><figcaption></figcaption></figure></div>

## How to restore a flow from a backup file

To restore a flow, you can use a previously saved `.json` backup file. Navigate to the **"Restore from file"** tab in your project and upload the file. This also works for importing a bot flow that was saved from a different project.

<div data-with-frame="true"><figure><img src="/files/qmLSvpbIU4g8RKpXRCEZ" alt="" width="361"><figcaption></figcaption></figure></div>

**Important:** This action will restore the flow to the exact state of the backup. This includes any blocks, connections, and their settings that may have been deleted in the current version.

<div data-with-frame="true"><figure><img src="/files/dCQ98BAHzCrm3lbnW758" alt=""><figcaption></figcaption></figure></div>


---

# 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.mavibot.ai/chatbot/builder/backup.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.
