How to save Xiaomi cleaning card: backup, export and recovery

Xiaomi and Roborock’s robot vacuum cleaners create detailed maps of spaces to efficiently clean, but what if the device breaks down, resets to factory settings, or you buy a new vacuum cleaner? Losing the map means that the robot will have to relearn how to plan the apartment, spend time re-scanning and possible cleaning errors. Fortunately, you can save the cleaning card in several ways, from manual export to automatic backup to the cloud.

In this article, we will analyze all the current methods of saving cards for Xiaomi Mi Robot, Roborock S7/S8, Dreame and others working through the Mi Home or Roborock App. You will learn how to export the card to a file, upload it to another vacuum cleaner, restore after resetting and even transfer settings between accounts.

Why a cleaning card can go missing and when to keep it

Many users experience sudden card loss due to:

  • πŸ”„ Resetting vacuum cleaner settings (for example, after selling or transferring to another user).
  • πŸ“± Reinstallation of the Mi app Home/Roborock App without prior backup.
  • ☁️ Problems with cloud account (blocking, changing the region, synchronization errors).
  • πŸ› οΈ Repair or replacement of the motherboard – in this case, the device memory is reset.
  • πŸ†• Buying a new vacuum cleaner – transferring the card will save days on retraining.

Preserving the map is recommended in advance, without waiting for force majeure, especially critical for owners of multi-level apartments or houses with complex layouts - re-scanning can take several hours or even days. For example, Roborock S8 Pro Ultra robot spends up to 3-4 hours to create an accurate map of a 100 m2 apartment with several rooms and partitions.

⚠️ Note: If you are using Xiaomi Mi Robot Vacuum-Mop 2 Lite or other budget models without mapping support (for example, with LiDAR scanner, but without the card saving function), all of the described methods will not work.

Method 1: Backup card with Mi Home/Roborock App

The most reliable way is to automatically back up to the Xiaomi cloud, which is available in the latest versions of the Mi Home (for Xiaomi) and Roborock App (for Roborock/Dreame), but it can be disabled by default.

To enable backup:

  1. Open the Mi Home or Roborock App.
  2. Select your vacuum cleaner from the list of devices.
  3. Go to Settings β†’ Map β†’ Map β†’ Backup map (in some versions, the path may differ: Profile β†’ Card settings).
  4. Activate the Automatic Backup Switch.
  5. Choose the frequency – daily or weekly (recommended daily if the card is updated frequently).

Once activated, the card will be saved to the Xiaomi cloud and linked to your account, and can be restored on any device authorized under the same login.

  • πŸ”’ Region-based: If you change your account region (e.g. from Russia to China), backups may be lost.
  • πŸ“¦ Number limit: Up to the last 3 copies are stored in the cloud.
  • πŸ•’ Synchronization delay: Sometimes backups are created up to 24 hours late.

Connecting a vacuum cleaner to 2.4 GHz Wi-Fi

Updating the application to the latest version

Free space in the cloud (minimum 50 MB)

No synchronization errors in account settings-->

Method 2: Manually export the card to the file (for advanced users)

If you don’t trust the cloud or want a local copy, you can export the card to the file via an engineering menu or third-party tools, a method that is suitable for the Roborock S5/S6/S7/S8 models and some Xiaomi Mi Robot with Valetudo-based firmware.

Exports will require:

  1. Connect to the vacuum cleaner via SSH (if custom firmware is installed) or use Valetudo RE.
  2. Find the map file – it is usually located on the path /mnt/default/rockrobo/map/ and has the extension.pgm or.json.
  3. Download the file on your PC using SCP or via the Valetudo web interface.
Example of commands for downloading a map via SSH (Linux/macOS)


scp root@[IP_ vacuum cleaner]:/mnt/default/rockrobo/map/*.pgm ~/Downloads/

The card file can be later downloaded back or used for analysis in programs like GIMP (for.pgm) or text editors (for.json), but this method requires technical skills and risks voiding the warranty if the vacuum cleaner is on official firmware.

What is Valetudo and how to install it?
Valetudo is an alternative open source firmware for robot vacuum cleaners Xiaomi/Roborock, It allows you to control the device without the Xiaomi cloud. STM32-The port, which may lead to loss of warranty, is available on the official website of the project.

⚠️ Warning: Manual interference with the vacuum cleaner file system can lead to loss of warranty and unstable operation of the device.If you are not sure about your actions, use cloud backup (Method 1).

Method 3: Transfer the card to another vacuum cleaner or account

If you have bought a new robot vacuum cleaner or want to transfer the card to another user, you can use the feature (share access) in the Mi Home app. This method only works for devices tied to the same region (for example, both vacuum cleaners must be in Russia or China).

Instructions for transfer:

  1. Open Mi Home, select the original vacuum cleaner.
  2. Go to Settings. β†’ Public access.
  3. Add an email or phone number to the second account (which has the target vacuum cleaner tied).
  4. Confirm access on the second device.
  5. In the second account app, select Import Card (if the feature is available).

Important limitations:

Model vacuum cleanerSupport for card transferWhether a cloud is required
Roborock S7/S8Yes (via public access)Yes.
Xiaomi Mi Robot Vacuum-Mop 2 ProYes (within one region only)Yes.
Dreame D10 PlusPartially (manual export only)No.
Roborock S5No (outdated firmware)β€”

If the sharing transfer doesn’t work, try resetting the target vacuum cleaner to the factory settings and linking it to the account from which the card was exported, and then the card can be downloaded automatically from the cloud (assuming backup has been enabled).

πŸ“Š What a vacuum cleaner. Xiaomi/Roborock you?
Xiaomi Mi Robot Vacuum-Mop 2 Pro
Roborock S7/S8
Dreame D10/D10s
Another model
I haven't bought it yet.

Method 4: Recovery of the card after resetting or repair

If the vacuum cleaner has been dropped or repaired, and the card is missing, you can restore it in two ways:

  1. From cloud reserve (if the function was activated in advance).
  2. Through manual download (if you have a local copy of the card file).

To recover from the cloud:

  1. Connect the vacuum cleaner to the same Mi Home account as before.
  2. Wait for the synchronization (it can take up to 10 minutes).
  3. Go to Settings β†’ Map β†’ Restore the map.
  4. Select the last backup copy.

If the card is not automatically restored:

  • πŸ”Œ Check the vacuum cleaner's connection to 2.4GHz Wi-Fi (5GHz not supported).
  • πŸ”„ Restart the vacuum cleaner (hold the power button for 10 seconds).
  • πŸ“± Update the Mi Home app to the latest version.
  • 🌐 Make sure your account region is unchanged (e.g. from Russia to China).

⚠️ Warning: If the vacuum cleaner was repaired with a replacement motherboard, its serial number may have changed, in which case the link to the old account will become impossible, and the card will have to be recreated.

Method 5: Alternative conservation methods (for power users)

If the standard methods do not work, you can try:

  • πŸ–₯️ Home Assistant with Xiaomi Miio integration: This system allows you to export cards in format JSON It requires settings on the server (for example, Raspberry Pi).
  • πŸ“Š Screenshots + manual re-creation of zones: If the map is simple, you can take screenshots in the application and manually restore cleaning areas and forbidden areas.
  • πŸ”§ Modified firmware (e.g. Valetudo): Allows you to save maps locally and edit them via a web interface.

Example of setting up Home Assistant for exporting the card:

# Fragment of configuration.yaml


vacuum:




- platform: xiaomi_miio




host: [IP_Volet




token: [VASH TOKEN]




map_file_path: /config/vacuum_map.json

After setting up, the card will automatically be saved to the file. vacuum_map.json This method is suitable for users who already use Home Assistant to manage a smart home.

πŸ’‘

If you move frequently or rent, save screenshots of a marked map (e.g., "Kitchen - intensive cleaning area") to help quickly adjust the vacuum cleaner to a new location, even if the map itself does not move.

Frequent Mistakes and How to Avoid Them

When saving and restoring cards, users often face the following problems:

Mistake.Reason.Decision
Map not recovered from the cloudChanged the region of the account or serial number of the vacuum cleanerReturn the old region or contact Xiaomi support for data porting
The app does not see the backup copyOutdated version of Mi Home or synchronization failureUpdate the app and restart the vacuum cleaner
Map recovered, but robot 'can't see' zoneDisparity of layout (for example, furniture rearranged)Update the map manually or reconfigure the zones
You can’t export your card to Roborock S5.Outdated firmware without cloud backup supportUpdate your firmware or use Valetudo

If none of these methods work, the last option is to recreate the map, to speed up the process.

  • 🏠 Remove small objects from the floor that may interfere with the scans.
  • πŸšͺ Close doors to rooms that don’t need to be scanned.
  • πŸ“ Use Mapping Mode (if available in the model) for accelerated scanning.

πŸ’‘

The most reliable way to avoid losing your card is to enable automatic cloud backup and regularly check it, and even if the vacuum cleaner breaks, the card can be restored to a new device.

FAQ: Answers to Frequent Questions

Can I save a cleaning card on Xiaomi Mi Robot Vacuum-Mop 2 Lite?
No, budget models without LiDAR (e.g. Mi Robot Vacuum-Mop 2 Lite) do not support map creation and saving, but run on the Random Navigation principle and do not remember layout.
How to transfer a map from Roborock S7 to Roborock S8?
If both vacuum cleaners are tied to the same Roborock App account, the card can be transferred automatically when you add a new device. If not, export the card manually through Valetudo or use the shared feature (see Method 3).
What if after updating the firmware card disappeared?
A firmware update shouldn't reset the card, but if it did: Check if cloud backup is on. Reset the vacuum cleaner (hold the power button for 10 seconds). If the card doesn't recover, recreate it and activate automatic backup.
Can I edit the saved card on a PC?
Yes, if the map is exported in.json or.pgm. Text editors (for.json) such as Notepad++ are suitable for editing. Graphic editors (for.pgm) such as GIMP. Specialized tools like Valetudo Map Editor. After editing, the map can be loaded back to the vacuum cleaner (technical skills are required).
How much space does the card backup take?
The size of the card file depends on the complexity of the layout: Simple apartment (1-2 rooms): ~5-10 MB. Complex layout (multilevel, with partitions): up to 50 MB. Xiaomi cloud storage provides enough space for 3-5 copies.