mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-14 11:17:44 +00:00
* docs: user guide for the 7.1 apps * docs, website: guide order, badge benefits, message expiry; soft line breaks on the site * docs: guide videos for the first profile, invitations, joining and the address * docs: guide screens with the iPhone status bar * docs: guide shows full and cut screens only * docs: guide pages corrected in place, keeping master's structure * docs: group chat and SimpleX address pictures in the iPhone frame * docs: plainer wording in the guide * docs: guide checked against how SimpleX explains its features * docs: guide answers on profiles, channel privacy, SOCKS and names * docs: android guide picture from the emulator in the pixel 7 frame
100 lines
4.2 KiB
Markdown
100 lines
4.2 KiB
Markdown
---
|
|
title: Managing data
|
|
---
|
|
# Managing data
|
|
|
|
## Automatic message deletion
|
|
|
|
To delete messages from your local chat database after a set period of time,
|
|
open [the app settings](./app-settings.md#opening-the-app-settings), tap **Chat
|
|
data** and choose the period in **Delete messages after**.
|
|
|
|
**Please note**: This option does not delete messages for other users, only for you. This option is set independently for each chat profile.
|
|
|
|
To set a different period for one chat, choose it in **Delete messages after**
|
|
in the chat info.
|
|
|
|
## Chat database
|
|
|
|
To open your chat database settings:
|
|
|
|
- [Open the app settings](./app-settings.md#opening-the-app-settings).
|
|
- Tap **Chat data**, then **Database passphrase & export**.
|
|
|
|
### Database passphrase
|
|
|
|
<img src="./images/managing-data-passphrase.png" alt="Database passphrase screen on iOS with Save passphrase in Keychain turned on" width="300">
|
|
|
|
By default, database passphrase is random, you have to set it manually to be able to export it.
|
|
|
|
To set your own passphrase, tap **Database passphrase**, enter it in **New
|
|
passphrase…** and **Confirm new passphrase…**, and tap **Update database
|
|
passphrase**. To change a passphrase that you set before, also enter it in
|
|
**Current passphrase…**.
|
|
|
|
The app saves the passphrase on the device, in iOS Keychain, in Android Keystore,
|
|
or in the app settings as plaintext on desktop. After you set your own
|
|
passphrase, you can turn off **Save passphrase in Keychain** (iOS), **Save
|
|
passphrase in Keystore** (Android) or **Save passphrase in settings** (desktop).
|
|
The app then asks for the passphrase each time it starts, and notifications on
|
|
iOS and Android are limited (see
|
|
[Notifications](./notifications.md#notifications-and-the-database-passphrase)).
|
|
On desktop, a passphrase that you set at the first start is not saved. A lost
|
|
passphrase cannot be recovered.
|
|
|
|
### App data backup
|
|
|
|
The app data is not saved in iOS backups, and Android backup is turned off for
|
|
the app. To keep a copy of your data, [export the database](#export-database)
|
|
regularly: importing an old copy may disrupt your conversations with some
|
|
contacts.
|
|
|
|
### Export database
|
|
|
|
Here you can export the chat database to a file. The file also contains your
|
|
files and the app settings. The app stops the chat to export the database, and
|
|
the chat stays stopped after the export. To start it again, turn on the toggle
|
|
under **Run chat**.
|
|
|
|
### Import database
|
|
|
|
Here you can import the chat database from a file. Your current chat database is
|
|
deleted and replaced with the imported one. When the chat starts again, the app
|
|
asks for the passphrase of the imported database.
|
|
|
|
### Delete database
|
|
|
|
Here you can delete your chat database. All your SimpleX Chat data will be lost,
|
|
unless you have just exported the chat database.
|
|
|
|
## Delete files and media
|
|
|
|
<img src="./images/managing-data-chat-data.png" alt="Chat data screen on iOS with Delete messages after, Database passphrase and export, and Delete all files" width="300">
|
|
|
|
You can delete all sent and received files and media stored in the app with
|
|
**Delete all files** in **Chat data**, without deleting the messages. When you
|
|
have several chat profiles, the button is **Delete files for all chat
|
|
profiles**.
|
|
|
|
## Migrate to another device
|
|
|
|
You can move all your chat profiles, contacts, messages and files to a new
|
|
device. The app encrypts them and uploads them in chunks to your XFTP file
|
|
servers.
|
|
|
|
1. On the old device, open [the app
|
|
settings](./app-settings.md#opening-the-app-settings) and tap **Migrate to
|
|
another device**. The app stops the chat. Set a database passphrase, or
|
|
confirm the one you set before, and tap **Archive and upload**. When the
|
|
upload completes, the app shows a QR code and a link.
|
|
2. On the new device, install the app and tap **Get started** (iOS and Android)
|
|
or **Create your profile** (desktop). Tap **Migrate** (**Migrate from another
|
|
device** on desktop) at the top of the screen. Scan the QR code (iOS and
|
|
Android) or paste the link, then enter the database passphrase and tap **Open
|
|
chat**.
|
|
3. When the new device shows **Chat migrated!**, tap **Finalize migration** on
|
|
the old device, then **Delete database from this device**.
|
|
|
|
Do not use the same database on two devices. It breaks the decryption of
|
|
messages from your connections.
|