# Transfer using scheduled backup (SFTP)

The second method involves setting up automatic scheduled backups, saving the data directly onto the target server via SFTP. This approach is particularly convenient for transferring larger amounts of data, as it eliminates the need for intermediate storage of the backup.

## Configuring Scheduled Backup

First, you need to configure scheduled backups for the MikoPBX you want to transfer data from.

1. Go to the **"Backup"** module. Navigate to the **"Backup Schedule"** tab:

<figure><img src="/files/fMt9P78TNRbh5nwsLFVT" alt=""><figcaption><p>"Backup schedule" button</p></figcaption></figure>

2. Next, set the scheduled backup parameters:

* **Server Address**: Enter the address of your new MikoPBX server.
* **Mode**: SFTP mode
* **Port**: 22
* **Username**: The SSH username for your **new** MikoPBX server.
* **Password**: The SSH password for your **new** MikoPBX server.
* **The path on the server**: `"/storage/usbdisk1/mikopbx/backup/"`

For information on SSH connection, refer to the related documentation. To start the backup immediately after saving the settings, choose the option **"Start backup immediately after saving settings"**. You can also select the specific data you want to transfer in the corresponding section.

<figure><img src="/files/4idFStWwdlo0bQ6T6MEL" alt=""><figcaption><p>Parameters of backup</p></figcaption></figure>

Wait for the backup to complete, and then shut down the old machine.

## Restoring from the Backup on the New Host

If the data transfer is successful, your backup will appear in the backup module section on the new host:

<figure><img src="/files/mVu94wMaq8Lcl7Q1dOPP" alt=""><figcaption><p>Backup copy</p></figcaption></figure>

To restore from the backup on your new host, do the following:

1. Go to the backup settings by clicking on the respective element:

<figure><img src="/files/B7d1uXB2VkQckY6Zs8Dx" alt=""><figcaption><p>Way to recovery settings from a copy</p></figcaption></figure>

2. Select the data you need to transfer and click **"Restore from a backup"**:

<figure><img src="/files/VIEjpd4UkjF8ZfWSIZgo" alt=""><figcaption><p>"Restore from a backup"</p></figcaption></figure>


---

# 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.mikopbx.com/mikopbx/english/faq/setup/change-host/transfer-using-scheduled-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.
