Omni-Notes icon indicating copy to clipboard operation
Omni-Notes copied to clipboard

Throw understandable warning if backup restore fails

Open keunes opened this issue 7 years ago • 9 comments

Just tried to import the backup, but there was an issue and I got a message that the developer has been informed. I think I'm moving from ON (Google) to ON Foss (F-Droid) (I'm not sure I was on Google or F-Droid before) - might that be causing the issue?

keunes avatar May 02 '17 16:05 keunes

I think could be something related with this: https://github.com/federicoiosue/Omni-Notes/issues/345

federicoiosue avatar May 02 '17 16:05 federicoiosue

Could you please send me some details on your configuration (device, OS version, Omni Notes version...)?

federicoiosue avatar May 02 '17 16:05 federicoiosue

device: Fairphone 2 OS: Android 6.0.1 ON: 0.102.3 I didn't have a password, so not sure whether it would be related to #345.

Thanks for replying so fast :)

keunes avatar May 02 '17 16:05 keunes

Hello,

Still cannot access my notes so I just tried again (in case something had gone wrong while copying the files or sth) but still no luck. Interestingly, the back-up function says '0 Kb' both for the database and the preferences. Is there anything else I could do to help debug the issue?

keunes avatar May 07 '17 13:05 keunes

What if, by using your current device and app version, you try to make a backup and then restore it? It works? Does it shows the correct (or at least different from zero kilobytes) size?

If it works you could try to compare backup structure

federicoiosue avatar May 08 '17 16:05 federicoiosue

Do any of your backup files end with a '.' ? I backup to Box. When I download the backup from box it's appending a dot. Removing the dot char from the filename fixed this issue for me.

ednafziger avatar May 09 '17 06:05 ednafziger

Ok, just found the issue, thanks for helping me both. It indeed is a naming and folder issue: I had the files (database, images folder, settings) in the folder 'Omni Notes Foss'; they should be in a folder, in that folder (not loose files).

I guess ON should give I structions when you backup, or at least throw an understandable error if you try to import a single file (rather than a backup folder).

keunes avatar May 09 '17 06:05 keunes

Could you please provide DDL you used?

Il lun 28 mag 2018, 12:01 dapgo [email protected] ha scritto:

On 5.5.0 FOSS, i modified the exported backup; categories table with SQLite I tried to restore it and it produces an error "Unfortunately ,OmniNotes FOSS has stopped'.

My modification was just insert field name and category_id (with a 13 digit integer) description and color fields for new rows have null values. should I set description to void string and a value for color?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/federicoiosue/Omni-Notes/issues/361#issuecomment-392481744, or mute the thread https://github.com/notifications/unsubscribe-auth/AAduwA-Wyq1RFYpVQmrxAx6pTuhNzWAGks5t28sOgaJpZM4NOV8J .

federicoiosue avatar May 28 '18 19:05 federicoiosue

Sorry Federico, it was my failure, in fact I deleted my post quite quickly.

The problem was a wrong file name, as consequence of renaming omni-notes to omni_notes and forget to rename again the file before restore.
I replaced "-" by "_" because in sqlite I was specifying the dbname before the table and it can't contain symbol "-", anyway in sqliteStudio it is possible to specify a name for db without the need or renaming :)

dapgo avatar May 29 '18 06:05 dapgo