Docs/Data & Sync

User Guide · 2.4.1 Release

Data backup

Local export/import · Huawei Cloud Drive / WebDAV / SMB backups

Read Markdown
On this page

Confirm your data is actually backed up first#

Connecting to Cube Agent online services, signing in to your Huawei Account, or restoring purchases does not automatically back up your conversations or Knowledge Bases. Always run a dedicated data backup and confirm the upload succeeded; merely seeing Cloud Drive ready or Pending upload does not mean the backup is complete. Backups must currently be triggered manually and are not real-time sync.

Local export / import#

You can bundle conversations, attachments, and settings into a single backup file. On a new device or after reinstalling the app, restore via Settings → Data & Sync → Import Data. For backups from third-party apps, see Import third-party backups.

Open Settings → Data & Sync → Export Data. It defaults to Back up or migrate with exportable items selected—uncheck anything you do not need, review the summary, and save the file, share the file, or use experimental Nearby Transfer (Tap to share). File import and Nearby Transfer share the same review flow: conversations, memories, and usage stats merge by default (conflicting conversations are saved as recovery branches, and distinct memory entries are both kept), while configuration conflicts are skipped by default. You can also actively choose to skip, keep a full copy, or replace—replacing requires confirmation because local-only content may be lost.

Credentials for selected settings are exported together#

Provider API keys, multi-key pools, custom headers, search keys, MCP auth credentials, SSH passwords / private keys / passphrases, voice service keys, document parsing credentials, WebDAV / SMB remote mount passwords, and assistant environment variables are all exported together with their parent configurations (along with online catalog font selections, speech read-aloud and voice cloning samples, voice input settings, document parsing settings, shared files, and WebDAV / SMB remote mount configurations; manually imported local non-catalog font files are not packaged). Choosing Share content does not strip these credentials automatically—if you do not want to transfer a configuration, uncheck it. Full data backups also include SMB backup connection settings and passwords (selective transfers currently exclude SMB backup connection settings).

The review page states clearly that the file contains plaintext credentials, while item previews hide credential values. If any selected configuration or credential cannot be read completely, the entire export fails—resolve the error and retry, as the app will never produce a successful package with missing credentials. Save exported files only to trusted locations or give them only to trusted recipients, and never attach backup packages to feedback reports.

If the manifest reports that certain skill or file names are unsupported, those entries are excluded from selection. Skills are checked as a whole rather than transferring partial scripts or configs—clean up those names and reload the manifest. All other selectable content can still be exported normally.

Model names and IDs on historical messages are preserved on import; when an older backup lacks credentials, existing local keys are kept. Knowledge Base folders, assistant rules, and opening-message settings are exported with their corresponding data; after import, automatic model-generated openings are turned off and can be re-enabled when needed. Restore Knowledge Base folders on a version that supports folders, as saving again on an older version may lose folder hierarchy.

Selective transfers still follow import rules, so some model connections or assistant tool bindings may need re-checking afterward; the Generated Images category is not equivalent to a complete image-generation task backup. Repeatedly importing and choosing to keep both copies continues creating duplicates and is not equivalent to automatic device sync.

Data backup (Huawei Cloud Drive / WebDAV / SMB)#

Open Settings → Data & Sync → Data Backup. Use the top switcher on the same page to choose a channel; all channels share Back Up Now and backup history. Huawei Cloud Drive and SMB let you choose a folder from Restore, while WebDAV supports Restore latest:

  • Huawei Cloud Drive: Sign in to your Huawei Account and grant Cube Agent access to Cloud Drive in system Cloud settings; backup packages are stored in your own Huawei Cloud Drive.
  • WebDAV: Configure the WebDAV URL, directory, and login credentials for a cloud drive or NAS that provides WebDAV service.
  • SMB Backup: Connect to an SMB 2/3 share exposed by a NAS, home storage, or computer and save backups into a directory inside that share. Typically used on the same LAN; the app does not automatically expose your NAS to external networks.

The SMB client requires server signing support, does not currently support SMB1, and does not auto-discover NAS devices—enter the device address and share details manually.

All three channels share the same backup format:

  1. Backup scope includes Knowledge Bases, conversations, attachments / generated images, assistants, provider keys, preferences, and more; to export only selected conversations, use Settings → Data & Sync → Export Data.
  2. Your first Back Up Now generates a full backup as the baseline for subsequent incremental backups; filenames begin with cubeagent_backup_.
  3. While the full backup and change log remain available, subsequent backups upload only changes using filenames starting with cubeagent_incr_; nothing is uploaded if there are no new changes.
  4. Restore latest restores the selected source's full backup and continuous incremental backups (on Huawei Cloud Drive and SMB choose a folder first; on WebDAV with multiple sources choose a device first). Messages and memories merge item by item while preserving local-only content: one-sided continuations append to the original conversation, while two-sided continuations or conflicts on shared messages are saved as a "Recovery branch." Global and assistant memories preserve distinct entries from both sides, and deletion records in incremental backups never delete local data.
  5. To inspect the manifest first, tap Restore on a specific entry under Recent backups. The app downloads and checks the file, displays counts for conversations, messages, attachments, and more, and writes data only after you tap Restore to confirm; tapping Cancel imports nothing. This entry restores only the selected package—a single incremental package contains only that backup's changes. History entries can also be deleted individually, though deleting one may break an incremental chain that depends on it; make sure a usable full backup remains before deleting.

Huawei Cloud Drive: backup location & restore#

  • Backup location → Change: Choose an existing folder or create a new one. Devices store backups separately by default; after switching locations, the next backup generates a full package. If your device identifier changes after an upgrade, a new full baseline is likewise created automatically without needing to delete old packages.
  • Backup location is stored only on the current device and does not migrate with backups. Device identifiers stay stable within the period permitted by the OS, but are not guaranteed to remain unchanged after uninstalling and reinstalling; after reinstalling, manually find your old folder in the Restore list. Backups created by an earlier installation may still appear as "Other device."
  • Restore → Folder → Latest state: Restores the usable full backup and consecutive incremental packages in that folder. Choose a specific version → Restore downloads first and displays a preview before writing upon confirmation. The app verifies the full baseline each incremental package depends on; if verification fails or the chain is broken, only successfully restored portions are kept with a notice—sequence numbers from different installations are never stitched directly into one chain.
  • Packages stored directly by older versions appear under Legacy backups and are not automatically migrated or deleted. Another device defaults to its own folder; to locate backups from another device, open Restore to browse the folder list rather than checking only "Recent backups" for the current location.

Huawei Cloud Drive: cleanup & clearing#

At the bottom of the "Cloud content" card are two distinct actions, both requiring secondary confirmation:

  • Clean history data: Deletes legacy backups, abnormal residuals, or other listed historical entries. When items are checked, only the selected items are removed; when none are checked, all historical items listed at confirmation are removed. Selecting a directory includes all of its contents, and newly discovered items are not automatically added to the current cleanup. Check names and purposes carefully first so you do not treat a legacy backup you still need as junk.
  • Clear this backup location: Deletes all contents of the current backup folder and removes abnormal residuals; other backup folders and legacy root-level backups are untouched. If other devices also back up to this location, their files will also be deleted—stop backing up from those devices to this location first. After clearing, the next backup creates a new full backup.

Neither action clears local chats on your device, but cloud deletions are irreversible. If an operation fails midway, some entries may already have been deleted—refresh and check before deciding whether to retry. Completing a directory rescan and sync does not lock out other devices, so files may reappear if another device writes to the folder afterward.

Configure SMB backup#

Fill in the fields under SMB Backup → Server settings → Edit. Suppose your NAS address is 192.168.1.10, it exposes a share named backup, and you want CubeAgent/phone inside it as the backup root:

  • Address: Enter 192.168.1.10 or a resolvable hostname—host portion only, without a share path or port.
  • Share: Enter backup—must match the share name opened under Network Neighborhood / SMB on your device; not the device name, local disk path, or multi-level directory.
  • Subfolder: Enter CubeAgent/phone for the directory inside the share; defaults to CubeAgent, or leave empty to start at the share root. When Separate folder per device is enabled, a per-device directory is appended beneath it. Missing directories are created during connection test or backup (requires write permission). Paths cannot contain ...
  • Username & Password: Enter a share account and password with read/write permission to the target directory.
  • More settings: Leave Domain blank unless your server requires it (for example, WORKGROUP); Port defaults to 445 (range 1–65535)—change it only if your server uses another SMB port, and never enter your NAS web admin port.

For Huawei Home Storage, first enable Network Neighborhood / SMB Sharing in device management—commonly under App Services → Network Neighborhood on the Home Storage page in AI Life (exact names and placement vary by device and version). Use the Network Neighborhood username and password, not your Huawei Account password; verify the share name and current IP directly on the device page, and update the address if your router reassigns the IP. For step-by-step instructions, see the Huawei Home Storage official guide (Chinese).

For example, in smb://192.168.1.10/backup/CubeAgent/phone, backup is the Share and CubeAgent/phone is the Subfolder—they are not interchangeable paths.

After filling in the fields, tap Test Connection first. The SMB test checks actual permissions in the target folder by creating, reading, renaming, and removing a temporary file. Once the test succeeds, tap Save, return to the backup page, and tap Back Up Now. A passing test does not mean settings are saved or a backup is done; re-test after changing any field. Targets cannot be changed while an operation is busy—wait for completion or cancel as prompted.

Switching to a different server, port, share directory, or account uses that target's independent backup progress and creates a new full backup first rather than continuing the previous target's incremental chain. Each target maintains its own history; editing and saving SMB connection settings also triggers a new full package on the next backup so the latest settings and password are carried completely. When alternating among multiple channels, if a channel falls behind, required change logs have been pruned, or the remote full backup is missing, the app automatically creates a new full backup—larger package size and longer runtime are normal in that situation.

SMB connection passwords are saved in local secure storage. If the device is locked or credentials are missing/unreadable, unlock the device and reopen settings, re-entering and saving the password if needed—the app will never silently treat an unreadable password as an empty password. Local secure storage does not mean backup archives are encrypted: full data backups carry SMB settings and passwords, and credentials for selected configurations enter backup or export packages according to the rules above while previews hide their values. If any configuration or credential slated for export cannot be read completely, the entire backup/export stops without producing a successful package missing credentials.

SMB: per-device folders, restore & deletion#

  • Separate folder per device: Enabled by default for new configurations. For example, with Share backup and Subfolder CubeAgent, the actual backup path is CubeAgent/device-<id>. The main page shows the actual path; the directory identifier is hash-derived and does not contain the raw device identifier.
  • Upgrading existing configurations: Retains the original path without automatically enabling per-device folders, and does not move or delete old files. Enabling it manually generates a first full backup in the new folder; turning it off returns to the original folder. After a reinstall or system ID reset, the device folder may change, while the old folder remains accessible from Restore.
  • Finding legacy or other-device backups: Open Restore, choose Legacy backups in the original directory or one of the device folders beneath it, then pick a version. Browsing never changes your local backup location or sets another device's directory as your upload target. The list browses only the configured root directory and its immediate subdirectories; to restore from deeper historical subdirectories, point Subfolder to that path and turn off Separate folder per device.
  • Restore latest state: Merges full backups and consecutive incrementals from devices inside the selected folder and asks you to confirm before starting; matching local records may be updated. To inspect or restore a single backup, pick a specific version to download and preview before confirming.
  • Delete backup: The confirmation dialog shows the target folder and filename and deletes only that file without recursively emptying the folder. If settings change after confirmation, you must confirm again; deleting a full baseline may prevent dependent incrementals from restoring. The restore list does not provide delete buttons for other devices' folders.

Directory isolation prevents multi-device write conflicts and does not replace server permissions. Anyone using the same SMB account can still access these directories with other tools; backups are also not real-time two-way multi-device sync.

Troubleshooting SMB connections & restores#

  • Cannot connect or timed out: Confirm the NAS is online, SMB sharing is enabled, and the phone can reach the server; check address, port, and router client-isolation settings. Using SMB from an external network requires an already reachable network—entering a home LAN IP alone cannot auto-connect remotely.
  • Authentication failed: Verify the share username, password, and whether the server requires a Domain; for Huawei Home Storage, check the Network Neighborhood account.
  • Missing read/write permissions: Check both share-level and directory-level permissions. Being able to browse a directory does not guarantee backup permission—creating, reading, renaming, and deleting temporary test files must all be allowed.
  • Share, folder, or file not found: Verify the share name and subfolder, then refresh the list; to find another device's backups, connect to the same configured root folder and select the source folder under Restore.
  • Insufficient space or verification failed: Check available storage on both the NAS and phone as well as network stability, resolve the issue, and retry. An error prompt or showing only transfer progress never means a backup succeeded.

Backup scope & runtime behavior#

Full backups include Knowledge Base text, indexes, and original files already saved inside Knowledge Bases (excluding external files not yet imported into the app), plus AI-generated files in conversation workspaces and custom chat wallpapers used by assistants—all restored together on a new device. When exporting only selected conversations, you can uncheck "Include workspace files" to reduce archive size.

Backups and restores support continuing in the background (via long-running task keep-alive), subject to system limits. Backups can be cancelled as prompted, including while reading large message histories; once a restore enters the data-writing stage, cancellation is temporarily disabled to avoid partial restores.

Message export uses paginated reads and chunked writes to keep arbitrarily long messages intact without truncating content to shrink archives. Large backups may still take noticeable time and free storage space.

If the manifest flags unsupported skill or file names, those items are excluded from selection. Skills are checked as a whole rather than transferring partial scripts or configs—clean up those names and reload the manifest. All other selectable content exports normally.

Export and Nearby Transfer verify login credentials for selected SSH configurations in advance. If credentials have expired or become unreadable, re-enter the password or re-select the private key in Remote Connections and save; unlock the device first if locked. Any credential read failure aborts the entire export without creating a package missing credentials. Previews hide credential values, but exported packages contain plaintext credentials for selected configurations.

Huawei Cloud Drive sync & upload status#

  • During upload, Cube monitors both system sync status and actual cloud file upload completion. When the network is unavailable, system sync is restricted to Wi-Fi only, battery is low, cloud space is full, local storage is low, or device temperature is too high, actionable reasons appear promptly instead of stalling silently.
  • While uploading, the status shows Syncing to Huawei Cloud Drive; duration depends on archive size and network speed. Because the OS does not provide byte-level upload progress for the file, no time-based percentage is shown; the backup is marked successful only once the target file is confirmed uploaded.
  • Creating a folder and refreshing backup history wait for cloud directory sync to finish first. Right after creating or clearing folders, the system may briefly return "Not ready" (22400001); the app retries with brief backoff and reports failure only if it still does not recover. On sync failure or timeout, the last displayed list is kept with a prompt to check or retry; keeping the previous list does not mean it reflects the latest cloud state or that backups were deleted.
  • Packages left only locally after an interrupted upload are marked Pending upload, and neither update the "Last backup" timestamp nor show as safely backed up.
  • Cloud-only backups are downloaded locally first, then copied into the import cache. Both download initiation and transfer respond to cancellation and timeouts; on cancellation or failure, the app tries to stop the system download, and no app data is written until you confirm restore. Make sure you have enough free space for both downloading and extraction.

If a cloud directory or system sync service error occurs, toggle this app's sync switch off and back on in system Cloud settings as prompted; if the issue persists, restart the device and submit diagnostic logs. If the backup directory path is occupied by a non-directory entry with the same name, the app attempts to preserve the original item and repair the directory, failing clearly if it cannot be handled safely.

When another device cannot see your backup#

First confirm both devices use the same Huawei Account, that system Cloud Drive sync is enabled for Cube Agent, and that the source device's backup finished uploading—then refresh backup history on the target device. If you see a directory-not-synced or sync-restricted notice, check network, Wi-Fi-only settings, battery, and storage before retrying. Generating a backup file locally on the source device does not mean it has uploaded to the cloud, and updating the app does not automatically turn an old un-uploaded backup into a completed backup.

Important notes#

  • Huawei Cloud Drive, WebDAV, and SMB track backup progress and history separately—you can use multiple channels as needed, and switching channels does not automatically copy backups from another channel.
  • This is disaster-recovery backup, not real-time two-device collaboration: editing on both devices and restoring back and forth may overwrite data, so designate one primary device for routine backups.
  • Backups contain keys and login credentials for selected configurations—store them only in trusted locations. Hiding values in previews does not mean exported files are scrubbed.
  • Knowledge Base document bodies restore with backups created in version 1.4.3 and later; older backups containing only mount references require re-importing Knowledge Bases on the new device.
  • After importing preferences, default models and Prompt Cache settings refresh automatically—no app restart is needed.
  • Tap Run in background on the backup progress dialog to leave the page with the in-app Back button or system back gesture. You will get a notification when finished, and returning to Data Backup lets you follow the same task in the progress bar. During restore, stay on the page until completion.
  • You can enable backup reminders on the Data Backup page, evaluated against the latest backup time across all three channels; reminders do not run backups automatically. For server backups, use a dedicated account scoped to the required folder permissions, and store backup files containing credentials securely.