Restore didn’t do 100% of what i expected …
Contacts, messages, pictures and playlists are all restored as i expected.
Calendars and notes aren’t.
For the calendars i think i can work around it as they are all stored in caldav, so i can simply sync with my server to restore.
For notes it’s more tricky. In the restore log (in /home/defaultuser/.local/share/sailfish-backup/logs) i found:
Running unit script Notes (7 of 9)
Status text: Restoring: Notes
Start: /usr/libexec/jolla-notes/notes-vault --action import --name Notes --bin-dir /home/defaultuser/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2023-04-01T17-13-01Z/Notes/blobs --dir /home/defaultuser/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2023-04-01T17-13-01Z/Notes/data --home-dir /home/defaultuser
Done: notes-vault [FAILED] Exit code: 1
[ERROR] 3 Process exited with non-zero exit code or status, quitting.
Which looks like the same problem as described here: Intex to XA2 : restore fail . I did find some comments on restoring manually, so i untar’ed the backup and copied the notes directtory to /home/defaultuser/.local/share/com.jolla/notes/QML/OfflineStorage/Databases but that didn’t work (notes application still shows no notes).
I did notice the username on the system changed from “nemo” to “defaultuser”, i’m not sure if that has something to do with it.
Edit:
I noticed not all my contacts have been copied. It seems like the contacts in my carddav addressbook are not copied. An additional (but separate) problem is that the carddav sync on my FP2 doesn’t work anymore. It requests /.well-known/carddav and the server responds with a redirect to / (which is correct), but buteo-oopp-runner logs this is not expected and refuses to sync.
The server side is provided by https://radicale.org/ on a private server.
Edit2:
I found the buteo code responsible for the error: buteo-sync-plugin-carddav/carddav.cpp at master · ubports/buteo-sync-plugin-carddav · GitHub
I’m now trying to figure out what it expects from this redirect. It may not be the same as the original url (line 549) but should still end with /.well-known/carddav (line 550), so maybe it expects the a full URL instead of one relative to the server?
Edit3:
As suggested in [4.4.0.64] XPERIA 10 III Backup restore fails -> Notes can not be restored - #5 by rgp i created a symlink from /home/nemo to /home/defaultuser and the restore for notes worked. The only thing left are the contacts which are not covered by the backup/restore and carddav not working. My main goal is to get carddav going which should fix the issue.