We warmly recommend backing up your data from your Sailfish device to safe storage like a memory card or cloud service (Dropbox, Nextcloud or OneDrive). The latter is probably better as if the device should get stolen then the memory card would be lost, too.
The backup should be done on a regular basis. Sailfish OS release 3.4.0 makes this easier as we have implemented automatic scheduled backups.
Backups are considered device-specific, so you cannot (easily) restore the data to a different device.
The picture below shows how the menu page Settings > Backup looks like on Sailfish OS release 3.4.0. The top half is for setting up automated backups and the middle part for making manual backups while the bottom part lists the previous backups (if any) and let's you restore them to the device if needed.
Before you use the backup/restore utility, please bear in mind that it cannot save all the data on your device.
2.1. What is NOT included in backups
The backup utility of Sailfish OS does not save:
- installed applications (neither Sailfish nor Android), not even the list of them
- passwords of accounts
- the settings in the Settings menu
- contacts synchronised to a remote service (e.g. Google)
- local (non-synced) contacts are backed up
- calendar appointments synchronised to a cloud service (e.g. Google)
- local (non-synced) appointments are backed up
- images and videos are not backed up to any cloud service, only to an SD card
- music files
- email messages
- recorded calls
- document files in the Documents folder of the phone
- application data of Android apps
Items NOT listed in chapter 2.2 are not backed up, either.
2.2 What is included in backups
The following items are backed up (but with some exceptions):
Accounts: your configured accounts (Settings > Accounts).
Note: you will have to re-login to your accounts after using the Restore function as passwords are not backed up.
Browser: your browser bookmarks & tabs.
Note: your saved passwords are not included in the backup.
Gallery: photos and images appearing in Gallery app (residing in folders Pictures and Videos of the phone)
- Files in other folders, such as Downloads are not backed up.
- Images and videos are not backed up to cloud services, only to an SD card
- Images and videos saved by Android applications are not backed up at all.
Media: your playlists from the Media application.
Note: the actual music files (e.g. .mp3) are not backed up.
Messages: your SMS and IM messages.
Note: attachments of the MMS messages (i.e. pictures and other media files) are not backed up.
- your list of calendars in "Manage calendars" (in the pull-down menu)
- your private calendar entries (local, non-synchronised) in the Calendar app.
Note: synchronised entries (e.g. those from Google calendar service) are not backed up.
Notes: your notes created in Notes application.
Note: restoring notes from backup always overwrites pre-existing notes in the device (if any)
People: your local (non-synchronised) contacts.
Note: the contacts synced with cloud services (Google, Facebook) are not backed up.
Phone: Call history.
Items missing from this list are NOT backed up!
2.3 Backup prior to factory reset
If you are going to make a backup because you intend to do a device reset (reset the device to factory settings), please note that ALL DATA in the device will be completely WIPED OUT. Like written in chapters 2.1 and 2.2 above, Sailfish backup does not save everything you have in your device, i.e. some data will be lost. However, the data on the memory card remains intact.
Proceed in this order to restore your system after the reset:
2.4 Backup prior to encrypting user data
We recommend backing up your data before encrypting the user data (i.e., the home partition) of your device. This is our help article on the encryption of user data.
We also recommend encrypting your memory card (SD card) first, before encrypting home, to ensure that your backup data is safely stored to the card. How to encrypt the SD card is explained in this article on SD cards.
3. Manual backups
Manual backups (i.e., backup now) can be saved to memory cards and to cloud services.
In this chapter, we describe how you can make a backup to a memory card inserted in your Sailfish device and how to restore the backup if there is a need to. Making and restoring a backup to/from a cloud service is done in the same way as shown in chapters 3.1 and 3.2 below. You just need to have an Internet connection and be signed in to a cloud account before you start.
3.1. Backing up to memory card
Making a backup to a memory card is straightforward as it does not require any internet connection. Also, pictures and video clips from the device memory are backed up in this case (whereas they are not included in the cloud backups).
The downside of keeping backups in a memory card is the risk of losing the card together with the phone or otherwise (a card is a small object and could disappear among other objects).
1. Turn your device off.
2. Insert a memory card (an SD card) to the device. Check what is said about compatibility in this article on SD cards.
3. Turn the device on (it is always good to restart the device before taking a backup).
4. Unlock the memory card if encrypted or else you would be reminded about this in the red text "The memory card is locked" at step #5. In such a case, you should tap the Mount button.
5. Open Settings and select Backup
6. Tap on “Manually back up to” and select “Memory card”. Tap “Back up now” and the progress bar appears.
7. The backup process may take a while depending on the amount of data on your device.
8. When you see the view below the backup process is complete and your backup has been successfully copied to the memory card. Tap the check mark and you are done.
3.2. Restoring from memory card
1. Open Settings and select Backup.
2. On the “Restore device” section you can choose the item "sailfish_backup_*" to restore. The items have different storage locations and dates. Tap one with the text "memory card" underneath it and you will be shown the view below on the right.
Unlock the memory card if encrypted or else you would be reminded about this in the red text "The memory card is locked". In such a case, tap the Mount button.
3. Tap Restore to start the process.
4. The progress of the restore is shown next. Allow it to run to the end. When you see the view below on the right, the restore process is complete. Tap the check mark.
5. Restart your device. Sign in to your accounts, again.
NOTE: If you restore a backup, but suspect that not everything was restored, please restore the backup again.
4. Automatic backups
With Sailfish OS release 3.4.0, it became possible to make automatic backups that follow the schedule you have set. It is up to you if your data is backed up daily, weekly or monthly and at which time of a day. Isn't this easy? The backups are done for you on regular basis.
Automatic backups can only be targeted to cloud services, such as Dropbox, Nextcloud or OneDrive.
In order to use this option, first, you need to sign in to your cloud account at Settings > Accounts. This makes that the cloud service you signed up to appear as a backup location under Settings > Backup.
The backup and restore processes is similar for all cloud services. Below, you will see the instructions for OneDrive as an example.
NOTE: Gallery photos and videos are not saved to cloud backups.
4.1. Automatic backup to cloud
1. Go to Settings and select Backup.
2. Tap "Automatically back up to" and select the cloud service you want to use (if several). Note that only one cloud service can be active for backups at a time. In this item, you can also select "None" to prevent automatic backups from happening.
3. Tap "Back up" to select how frequently you want your data to be backed up.
4. Tap "Time" to select the time of a day when the backup is created.
5. Finally, select the type of Internet connection to be used for transferring the data to the cloud. If the selected type of connection is not available at the scheduled time then the backup is skipped.
The resulting backup schedule could be something like this:
You will see afterwards a line of text in the Backup section of the Events view showing the time when backups were made.
4.2. Restoring from cloud
Restoring a backup from a cloud is done in the same way, on your command, as from a memory card in chapter 3.2.
The only differences are that you will need an Internet connection and to be signed in to your cloud account before you start.
Then, select a sailfish_backup_* that resides in the cloud and tap Restore (in the same was as in steps #2 and #3 of chapter 3.2).
Backup app collects and saves logs to folder
/home/$USER/.local/share/sailfish-backup/logs/ where $USER is either 'nemo' or 'defaultuser'.
The log of a backup just completed (or still incomplete) can be viewed directly at the display by long-tapping the progress line. The logs of previous backups can be viewed by long-tapping their names at the bottom of the menu page.
6. Known issues
The accounts are typically not restored correctly. Some accounts (but not all) get a red text warning about this and asking to sign in again. This can be seen in Settings > Accounts.
It is a known problem that some accounts, e.g. Exchange, also require a new sign-in although they do not get the red warning texts. Since the menu of the Exchange account does not have any dedicated command for signing in, we recommend deleting the account first, followed by a new sign-up.
7. In case something goes wrong
If the backup process stops in the middle of the progress line and cannot continue after a few minutes, then it is best to stop it and try again after restarting the device.
it may be possible to find the reason for a failure in the logs (see chapter 5. Logs).