Restoring on a new server
Moving the tracker to an empty server from a backup on SFTP storage: in the first-run wizard or in the terminal with the --restore-env parameter.
This scenario is for when the old server is lost or the tracker is moving to a different server. The data is taken from a backup on SFTP storage; the domains and the license are set again. To bring data back on a working installation, use in-place restore.
What to prepare
- An empty server that meets the Server requirements and preparation page, and two domains with DNS records pointing to its IP.
- Access to the storage server with the backup: public IP, SSH port, login, password or private SSH key, and folder. The folder is the same as in the Folder on the server («Папка на сервере») field when connecting the storage, for example
/backups. - The storage server's key fingerprint: you will compare the fingerprint the wizard shows against it.
- The backup encryption key file
micator-backup-key-….txt, if the backups are encrypted. Without it, an encrypted backup cannot be restored — see Backup encryption. - The owner's login and password as of when the backup was created: after the restore you log in with them. If the password is lost, set a new one after the restore with a command on the server — see New owner password.
- A new license key. The key and the binding are not carried over from the backup; your account issues a new key after you unbind the old server — see Transferring a license to another server.
A backup can be restored only on a release with the same data schema and database versions it was created with. The installer puts the current release on the new server. If the old server still works, update the tracker on it and create a fresh backup.
Create a backup before unbinding the license. After unbinding, the old server's panel closes, and you will not be able to create a backup in it.
Installation and the first wizard step
Restoring in the wizard is available only on an empty server, before the tracker's first launch.
- Install the tracker on the new server following the Installation page.
- Open the wizard link with the access code.
- Fill in Panel domain («Домен панели»), Tracking domain («Домен трекинга») and Notification email («Email для уведомлений»).
- Click Check and continue («Проверить и продолжить»).
The wizard issues HTTPS certificates and opens step 2 at a secure address. The step 1 screens are covered on the First-run wizard page.
Do not fill in the owner form on step 2 and do not click Launch tracker («Запустить трекер»). It creates an empty installation, and after that you cannot restore a backup in the wizard.
Connecting the storage
On step 2, above the form, expand the Restore from a backup («Восстановить из резервной копии») block.
| Field | What to enter |
|---|---|
| Backup server IP («IP сервера копий») | The public IP of the storage server, for example 203.0.113.10. Domain names and private addresses are not accepted |
| SSH port («Порт SSH») | Default: 22 |
| SSH login («Логин SSH») | Default: root |
| Storage folder («Каталог хранилища») | The storage folder, for example /backups. The full path from / without / at the end. The wizard looks for backups in its tracker-backups subfolder |
| Authentication («Авторизация») | Password («Пароль») or SSH key («SSH-ключ»). Default: Password |
| Password or key passphrase («Пароль или пароль ключа») | The user's password. When logging in with a key — the key passphrase, if it has one |
| Private SSH key — when logging in with a key («Приватный SSH-ключ — при входе по ключу») | The private key text |
| Backup encryption key file («Файл ключа шифрования копий») | The micator-backup-key-….txt file downloaded in the panel when encryption was turned on. Instead of the file, you can paste its text into the or paste the file contents («или вставьте содержимое файла») field. Leave the field empty for unencrypted backups |
- Fill in Backup server IP, SSH port, SSH login and Storage folder.
- Click Check server («Проверить сервер»). A line
SHA256: …appears under the button — the server fingerprint. The password and key are not sent to the storage server at this step. - Compare the fingerprint with your storage server's fingerprint.
- Check The fingerprint matches my server's key («Отпечаток совпадает с ключом моего сервера») if the fingerprints match.
- Choose the method in the Authentication field.
- Enter the password or paste the key.
- Select the file in the Backup encryption key file field if the backups are encrypted. A line appears under the field: “Key file No. 3F9A-1C2B selected. The wizard does not save it.” («Выбран файл ключа № 3F9A-1C2B. Мастер его не сохраняет.»)
- Click Show backups («Показать копии»).
Select the key file before clicking Show backups: on an empty server, the key file is the only way for the wizard to tell which backups your tracker created. If you select a different file later, click Show backups again.
The progress of the operation is shown in a line under the Download and verify («Скачать и проверить») button, for example “Reading backups” («Читаем резервные копии»). Error messages appear there too, inside the block.
Clicking Check server again clears the fingerprint checkbox and the backup list. If you change the IP, port or login after the check, get the fingerprint again. After a page reload, you enter the server password and the key file again: the wizard does not store them.
Backup list
The Completed backup («Завершённая копия») list is divided into groups. Unfinished uploads do not appear in it.
| Group | Which backups | Can be selected |
|---|---|---|
| Opened by your file («Открываются вашим файлом») | Encrypted with the key from the selected file, signature valid. Each has a date and size, for example “3 October 2026, 04:01 · 1.2 GB” («3 октября 2026, 04:01 · 1,2 ГБ») | Yes |
| Encrypted with another key («Зашифрованы другим ключом») | Encrypted with a key that the selected file does not fit. The number of the required key is shown | No |
| Encrypted — key file needed («Зашифрованы — нужен файл ключа») | Encrypted backups when no key file is selected | No |
| Failed authenticity check («Не прошли проверку подлинности») | The signature did not match: the backup was not created by your tracker or was modified on the storage server | No |
| Unencrypted («Без шифрования») | Backups created without encryption | Yes, with confirmation |
- The newest backup that your file opens is selected first.
- Backups encrypted with another key have no date: it cannot be read without their key. If there are such backups, the wizard warns that they may be newer and names the characters in the name of the required file. To restore a backup that your file opens, check a box like Restore the backup from 3 October, although newer ones may exist («Восстановить копию от 3 октября, хотя могут быть более новые»).
- If the storage server has both encrypted and unencrypted backups, the unencrypted ones are shown after you check No key file — show unencrypted backups («Файла ключа нет — показать копии без шифрования»).
- For an unencrypted backup, the wizard shows a warning: it cannot verify that your tracker created the backup and that it was not swapped on the storage server. To continue, check I understand, restore the unencrypted backup («Понимаю, восстановить копию без шифрования»).
If there are no suitable backups, one of these lines is shown under the list:
- “This file (key No. 3F9A-1C2B) does not open any backup on this server.” («Этот файл (ключ № 3F9A-1C2B) не открывает ни одну копию на этом сервере.») — a file of a different key is selected. The wizard names the number of the key the backups are encrypted with;
- “All backups on this server are encrypted: 12. They cannot be restored without the key file — there is no fallback.” («Все копии на этом сервере зашифрованы: 12. Без файла ключа их не восстановить — запасного способа нет.») — no key file is selected;
- in the list itself, “No backups found — check the storage folder” («Копии не найдены — проверьте каталог хранилища») — the folder has no completed backups.
Selecting and verifying a backup
- Select a backup in the Completed backup list.
- Click Download and verify.
- Wait until the status “Downloading and decrypting the backup. You can close the tab.” («Скачиваем и расшифровываем копию. Вкладку можно закрыть.») changes to a summary. For an unencrypted backup, the status is “Downloading and verifying the backup. You can close the tab.” («Скачиваем и проверяем копию. Вкладку можно закрыть.»)
The wizard downloads the backup to the new server, decrypts it with the key file and checks:
- for an encrypted backup — the signature and that the whole file matches the signed size and checksum;
- the backup contents and the archive checksums;
- that the data schema matches the installed release;
- that the database versions match;
- free space: after the download, at least the size of the unpacked data plus a 20% margin and another 2 GB must remain.
A two-part summary appears under the button:
- “Version: … Size: … Old panel: … New domain to be used: …” («Версия: … Размер: … Прежняя панель: … Будет использован новый домен: …») — the backup version, its size, the old panel domain and the new panel domain from step 1;
- “Backup created 3 October 2026, 04:01 — 8 days ago. Anything that changed in the tracker later will not be restored. Authenticity confirmed by your key file.” («Копия создана 3 октября 2026, 04:01 — 8 дней назад. Всё, что изменилось в трекере позже, восстановлено не будет. Подлинность подтверждена вашим файлом ключа.») For an unencrypted backup, the last sentence is “Unencrypted backup: its authenticity is not confirmed by anything.” («Копия без шифрования: её подлинность ничем не подтверждена.»)
Between them is the New license key («Новый ключ лицензии») field, and below it the Type ВОССТАНОВИТЬ («Введите ВОССТАНОВИТЬ») field.
The wizard keeps only the last downloaded backup on the new server: the previous one, a rejected one and an incompletely downloaded one are deleted right away. The wizard does not save the key file.
If you click Check server or Show backups again after the check, the downloaded backup and the summary are deleted: you will have to download and verify the backup again.
Starting the restore
- Paste the key into the New license key field. The format is
XXXX-XXXX-XXXX-XXXX. You can leave the field empty and enter the key after the restore. - In the Type
ВОССТАНОВИТЬfield, typeВОССТАНОВИТЬin capital letters without spaces. - Click Restore tracker («Восстановить трекер»).
The “Launching the tracker” («Запускаем трекер») screen opens. The Owner («Владелец») line shows the owner's login from the backup. The status changes in order: “Preparing the tracker” («Подготавливаем трекер»), “Restoring geo databases” («Восстанавливаем геобазы»), “Restoring: …” («Восстанавливаем: …») for each part of the backup, “Checking the database and the send queue” («Проверяем базу и очередь отправок»), “Starting databases and panel” («Запускаем базы и панель»), “Checking readiness” («Проверяем готовность»). Traffic opens only after the readiness check. You can close the tab: the restore continues on the server.
When everything is ready, the “Tracker is ready” («Трекер готов») screen appears with the reminder “Log in with the account from the backup: passwords were not changed.” («Входите учётной записью из резервной копии: пароли не изменялись.») and the line “Backups on the new server are not set up yet: in the panel, open ‘Settings → Backups’, create a new key and connect a storage server.” («Резервные копии на новом сервере ещё не настроены: в панели откройте «Настройки → Резервные копии», создайте новый ключ и подключите сервер хранения.») Click Go to panel («Перейти в панель») — the login page opens. The tracker activates the license key entered in the wizard automatically.
What comes from the backup
| From the backup | Set again |
|---|---|
| Campaigns, streams, offers, landing pages, sources and settings | Panel domain and tracking domain — from wizard step 1 |
| Users and their passwords | HTTPS certificates — the wizard issues new ones |
| Statistics, the click queue and the event delivery log | License key and server binding |
| Files of hosted offers and landing pages, geo databases | Backup encryption key, storage server connection and backup schedule |
| Team name and logo | Email for certificate notifications |
Login and check
- Open
https://panel.example.com/login. - Log in with the owner's login and password from the backup. No new owner is created, and user passwords do not change.
- Open Settings → License («Настройки → Лицензия»). The state should be “License active” («Лицензия активна»).
- Open Settings → Backups («Настройки → Резервные копии»), create a new encryption key and connect the storage server again.
- Open Logs → Event delivery («Логи → Доставка событий») and find entries with the result Restored from backup · needs reconciliation («Восстановлено из копии · нужна сверка»).
If you see the “Tracker access closed” («Доступ к трекеру закрыт») screen instead of the panel, the license is not active. Enter the new key in the License key («Ключ лицензии») field and click Activate («Активировать»). If the key was entered in the wizard, wait until the old server's confirmation period ends — see Waiting after unbinding.
Entries with the result Restored from backup · needs reconciliation are tasks that were not finished when the backup was created. They will not be sent on their own: the old server may have sent them after the backup was created. Reconcile them with the recipient and only then retry them — see Manual retry.
The encryption key is not part of the backup, so it is created again on the new server. Backups from the old server get the mark “encrypted · another tracker's key” («зашифрована · ключ другого трекера») in the list: do not delete the old key file while you need these backups — only that file opens them.
There are no password files on the new server. The wizard deletes the downloaded backup from the new server when setup is finished — including when the backup was only verified and an empty installation was launched. The backup stays in the storage. If the owner's password from the backup is forgotten, the command sudo micatorctl owner-password sets a new one — see New owner password.
Terminal option: --restore-env
This option is for installing without a browser. The installer takes the .env.production file from the backup and creates a new installation with the old server keys: without them, the backup will not pass verification in the panel. The data is then restored from the panel. The release requirement is the same as in the wizard.
- Get the
server.tararchive of the backup you need. Backups are in thetracker-backupssubfolder of the storage folder, each in its own folder. For an unencrypted backup, the archive is in that folder. For an encrypted backup, download thesnapshot.agefile and decrypt it with the key file — see Opening a backup without the tracker. - Extract the
.env.productionfile from the archive. - Put the file on the new server outside the installation directory, for example in
/root/recovery/, with0600permissions. The/opt/micatordirectory must stay empty until the installation. - Run the installer with the command below. In
--admin-email, specify the owner login of the old installation. - Come up with an owner password for the clean panel and enter it twice. The installer does not take the password from the backup file. For installation without a terminal, pass the password in a file with
--owner-password-file— see Unattended installation. - Wait for the line “Done. Panel: https://panel.example.com” («Готово. Панель: https://panel.example.com»).
- Log in to the panel with the login from
--admin-emailand the password from step 5. - Create a new backup encryption key and connect the old backup storage.
- Run the verification and restore of the backup you need. An encrypted backup from the old server has the mark “encrypted · another tracker's key”: verification needs the old key file and the I understand, verify a backup signed by another server («Понимаю, проверить копию, подписанную другим сервером») checkbox.
sudo bash install.sh --restore-env /root/recovery/.env.production --panel panel.example.com --track track.example.com --email [email protected] --admin-email adminAfter the restore, the accounts and passwords from the backup apply; the password from step 5 does not apply to them. Backups, updates and the license key are available only to the account with the login from --admin-email, so it must match the owner login from the backup. When you run the installer again, specify the same file. The installer does not accept an incomplete file: “The recovery file does not contain all required server secrets.” («Файл восстановления не содержит все необходимые серверные секреты.») All parameters are on the install.sh parameters and terminal installation page.
In this option the license is not reset automatically. If the panel shows the “Tracker access closed” screen after installation or after the restore, unbind the server in your account and activate a new key — see Transferring a license to another server.
If something went wrong
The docker command failed (1). («Команда docker завершилась ошибкой (1).»)
This is a general message of the restore block: the wizard could not check the server, read the storage or download the backup. Check that:
- the Backup server IP field has a public IP, not a domain;
- SSH port and SSH login are correct, and the storage server accepts SSH connections from the new server;
- Storage folder is the full path from
/without/at the end, and this folder hastracker-backups; - the password or key is entered and correct. After a page reload, the block's fields are filled in again;
- the storage server's fingerprint has not changed since you clicked Check server.
Verification and launch messages
| Message | Cause | What to do |
|---|---|---|
| “Compare and confirm the SFTP server fingerprint.” («Сверьте и подтвердите отпечаток SFTP-сервера.») | The The fingerprint matches my server's key checkbox is not checked, or the IP, port or login changed after the check | Click Check server, compare the fingerprint and check the box |
| “Select a completed backup from the list.” («Выберите завершённую копию из списка.») | Nothing is selected in the Completed backup list | Click Show backups and select a backup |
| “This backup is encrypted. Upload the key file.” («Эта копия зашифрована. Загрузите файл ключа.») | No key file is selected for an encrypted backup, for example after a page reload | Select the file in the Backup encryption key file field and click Download and verify again |
| “This is not a backup encryption key file, or it is damaged. You need the micator-backup-key-….txt file downloaded when encryption was enabled.” («Это не файл ключа шифрования копий, или он повреждён. Нужен файл micator-backup-key-….txt, скачанный при включении шифрования.») | A different file is selected or the key text was changed. The wizard names an obviously unrelated file: “This is an SSH key. A backup encryption key file is needed here.” («Это SSH-ключ. Сюда нужен файл ключа шифрования копий.») or “This is a license key. A backup encryption key file is needed here.” («Это ключ лицензии. Сюда нужен файл ключа шифрования копий.») | Select the micator-backup-key-….txt file |
| “The file does not fit this backup — it is encrypted with key No. 3F9A-1C2B. You need the file with 3F9A1C2B in its name.” («Файл не подходит к этой копии — она зашифрована ключом № 3F9A-1C2B. Нужен файл, в имени которого 3F9A1C2B.») | A file of a different key is selected | Find the file with the given characters in its name |
| “The backup failed the authenticity check: it was not created by your tracker, or it was modified on the storage server. Do not use it. Select another backup and check who has access to the storage server.” («Копия не прошла проверку подлинности: её создал не ваш трекер, или её изменили на сервере хранения. Не используйте её. Выберите другую копию и проверьте, у кого есть доступ к серверу хранения.») | The backup's signature did not match | Select another backup |
| “The backup is damaged: the file on the storage server is incomplete or changed. Choose another backup.” («Копия повреждена: файл на сервере хранения неполный или изменён. Выберите другую копию.») | The encrypted file did not match the signed size and checksum | Select another backup |
| “The backup is not encrypted. To use it, confirm that you trust this storage server.” («Копия не зашифрована. Чтобы использовать её, подтвердите, что доверяете этому серверу хранения.») | The I understand, restore the unencrypted backup checkbox is not checked for an unencrypted backup | Check the box and click Download and verify |
| “Not enough free space on the server for this backup.” («Недостаточно свободного места на сервере для этой копии.») | The new server's disk has less free space than the backup size plus 2 GB | Enlarge the disk and click Download and verify again |
| “Connection to the storage was lost. Try again: the download will start over.” («Связь с хранилищем оборвалась. Повторите: скачивание начнётся заново.») | The connection to the storage server broke during the download | Click Download and verify again |
| “The backup download was interrupted: the wizard was restarted. Click ‘Download and verify’ again.” («Скачивание копии прервалось: мастер был перезапущен. Нажмите «Скачать и проверить» ещё раз.») | The server or the wizard restarted during the download | Enter the server password, select the key file and click Download and verify |
| “Database versions differ from the backup. A compatible release is needed.” («Версии баз данных отличаются от копии. Нужен совместимый выпуск.») | The new server has a different release than the one the backup was created on | Install the release the backup was created on onto an empty server |
| “Not enough space to unpack the backup and start the databases.” («Недостаточно места для распаковки копии и запуска баз.») | The new server's disk has too little space | Enlarge the disk and click Download and verify again. Each check downloads the backup again |
| “The backup checksum did not match.” («Контрольная сумма копии не совпала.») | The files of the downloaded backup did not match its manifest | Select another backup |
| “The backup is incomplete or has an incompatible format.” («Копия неполная или несовместимого формата.») | The backup lacks some archives or has a different format | Select another backup |
| “First verify the backup and confirm the restore.” («Сначала проверьте копию и подтвердите восстановление.») | The word in the Type ВОССТАНОВИТЬ field was typed differently, or the backup was not verified | Type ВОССТАНОВИТЬ in capital letters without spaces |
| “Enter the key XXXX-XXXX-XXXX-XXXX.” («Введите ключ XXXX-XXXX-XXXX-XXXX.») | The key in the New license key field does not match the format | Fix the key or clear the field |
The backup schema differs. Install the release the backup was created on, then update the tracker. («Схема копии отличается. Установите выпуск, на котором создана копия, затем обновите трекер.»)
The backup was created on a different tracker release.
- The old server still works: update the tracker on it, create a new backup and select it in the wizard. The Show backups button rereads the list.
- The old server is gone: you need an empty server with the release the backup was created on. The release address or file is passed to the installer with the
--bundleparameter, see install.sh parameters and terminal installation. After the restore, update the tracker from the panel. An installation made by an earlier release has its project, volumes and services named the old way, starting withtracker— see names of such installations.
You need to retry the launch
The restore stopped with an error; its text is shown on the screen. The selected backup is locked to the installation: you can no longer select a different backup or create an empty installation. Fix the cause and click Retry launch («Повторить запуск»). Launch messages are covered on the Installation errors and how to fix them page.
The message “The backup contains an unsupported geo database file.” («Копия содержит неподдерживаемый файл геобазы.») cannot be fixed by retrying: the cause is in the backup itself — see Tracker geo databases.