Sailfish X cannot restore a Sailfish (non-X) backup (Design issue)

REPRODUCIBILITY (% or how often): Presumably 100%
BUILD ID = Any/Sailfish X
HARDWARE (Jolla1, Tablet, XA2,…): XA2
REGRESSION: (compared to previous public release: Yes, No, ?): No

DESCRIPTION:

Backup uses tar. Sailfish X ordinarily uses Busybox tar. It thereby cannot Restore a full tar backup done from ordinary Sailfish. It produces no error messages yet causes massive problems.

STEPS TO REPRODUCE:

  1. Create a backup on normal Sailfish
  2. Restore same backup on Sailfish X that has no other version of tar (eg NielDK’s).

ACTUAL RESULT:

No errors reported however, restoration is typically incomplete. No accounts worked and it became impossible to fix or create accounts. Upon attempting to Reset to original Sailfish installation, it bricked my phone (only fastboot worked).

2 Likes

If accounts are broken in this way, Restoring after installing NielDK’s tar worked for me ie fixed all problems.

Possible fixes:

  1. Test for error upon extraction. I think it produced a couple when manually extracting although journalctl showed no such errors whilst using Restore.
  2. Name all Sailfish X backups backupx*. Upon trying to restore normal backup*, run verify on tar first.
  3. Test for incomplete accounts data on extraction. Not sure what was missing in the data, but various things have to be there to be able to restore an account.
1 Like