Conversations
Conversations copied to clipboard
Restore of backup not working
Both versions: 2.9.13+fcr
Steps to reproduce:
- On device 1 - "Create backup"
- Transfer ceb files from device 1 to device 2
- On device 2 - "Restore backup"
- Navigate to the ceb file and select it
Expected behavior: Backup is restored
Actual result: Message is displayed "The file you selected is not a Conversations backup file"
Side-note: This also happens when trying to restore the ceb file on the device where the backup was created.
Looks like there went something wrong while transferring the file. If I use the original file on the device where the backup is created, it seems to work.
I've reopened this issue as I'm not sure where the problem lies and I'd like to have your opinion on it.
I've created the backup and transferred the file via the NextCloud client to the new device.
After downloading in the NextCloud client I selected the ceb file from the "Open from" dialog via "Nextcloud", navigating to the file, selecting it and this resulted in the aforementioned error.
When I navigated to the file via the full path Android/media/com.nextcloud.client/nextcloud/<account>/path/to/file.ceb and retried it worked as expected.
Put the file in /Conversations/Backup Does it always work?
Do you have a log?
How can I create one?
https://github.com/iNPUTmice/Conversations/blob/master/README.md#how-do-i-debug-conversations
The only thing that is printed on failure in the log is
directory not found: /storage/emulated/0/Quicksy/Backup
directory not found: /storage/emulated/0/Conversations/Backup
@sjaeckel did you allow storage permission when asked?
Yes, Storage permission is set to "Allow".
I've also tried to add an attachment to a message via the same logic and that worked.
My best guess is that the NextCloud client doesn’t grant us permission to access that file. However 98ffadd87d8a6118af39fb00b2cb02d075e37951 will log the full stack trace.
@iNPUTmice in the FAQ it is described how to do the backup, but I could not see how to do the restore. I.E. tap on the ceb file and open with Conversations. Or have I overlooked it? For me it was not obvious how to restore the backup. Only when I've read in this issue to tap on the file, it was clear to me.
@hermann-san
Install Conversations, try to open a .ceb file via a File manager?
Start a fresh install of Conversations, upper right menu, Restore?
A running Conversations, accounts, upper right menu, Restore?
Which one did you try?
@licaon-kter Thanks, I already got it working, but I thought that the FAQ could be improved.