LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2019, 08:32 PM   #1
rtevans
LQ Newbie
 
Registered: Sep 2019
Posts: 1

Rep: Reputation: Disabled
Question BackInTIme isn't restoring database file.


Hello. On my PC, I use TimeShift to backup my system files and BackInTime for my user files. A few days ago, I ran into a problem with the Joplin notes app. One of my notes encrypted itself for no reason. I tried disabling and renabling encryption with the same password I used before but nothing changed. So I gave BackInTime a go and my note was unencrypted at first but after a few minutes the note was encrypted again. I tried deleting both the .config app data files and the sync target files and then restoring them, but nothing changed. I also closed Syncthing to make sure my notes weren't being synced from another device. I tried restoring from older snapshots and nothing changed.

I then resorted to restoring my entire home directory to the day prior but for whatever reason that messed up my Firefox browser. uBlock and Dark Reader stopped working. In fact, uBlock prevented me from browsing entirely. Websites just kept loading to infinity. Restoring the .mozilla config folder didn't work. Finally, I refreshed Firefox and that fixed it. Unfortunately, Joplin was unchanged after restoring the home directory.

I noticed all the snapshot .config folders for Joplin had a program file dated to the current day called "window-state-prod.json". I tried deleting it and restoring the .config folder without it but still nothing.

I know this doesn't make sense but I even tried restoring my system with TimeShift as last ditch effort in the hopes it would fix something I overlooked. Nothing changed.

I had a theory maybe the .config and sync location folders were replaced by the current folders somehow because of the prompt message about backing up files before restoring them. However, I noticed the database.sqlite files in the snapshot .config folders were a smaller size compared to the one in my current .config folder, which I thought was promising. On a different note, I also noticed the database is the same size for all the snapshots including the ones made yesterday and today. Could this mean they're all the same database regardless of the date? I tried restoring the database file to a separate location and then pasting it over the current database but no luck.

Tried running BackInTime from a live USB drive to see what would happen but I wasn't able to get to recognize the snapshots in the backup location.

Is BackInTime malfunctioning or am I doing something wrong here? I hope it's the latter because I really want to recover my notes FYI, I used the root version only.

Any help would be appreciated. I'm using running BackInTime version 1.1.12 on Linux Mint 19.2. Thanks.
 
Old 09-12-2019, 01:15 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by rtevans View Post
Hello. On my PC, I use TimeShift to backup my system files and BackInTime for my user files. A few days ago, I ran into a problem with the Joplin notes app. One of my notes encrypted itself for no reason. I tried disabling and renabling encryption with the same password I used before but nothing changed. So I gave BackInTime a go and my note was unencrypted at first but after a few minutes the note was encrypted again. I tried deleting both the .config app data files and the sync target files and then restoring them, but nothing changed. I also closed Syncthing to make sure my notes weren't being synced from another device. I tried restoring from older snapshots and nothing changed.

I then resorted to restoring my entire home directory to the day prior but for whatever reason that messed up my Firefox browser. uBlock and Dark Reader stopped working. In fact, uBlock prevented me from browsing entirely. Websites just kept loading to infinity. Restoring the .mozilla config folder didn't work. Finally, I refreshed Firefox and that fixed it. Unfortunately, Joplin was unchanged after restoring the home directory.

I noticed all the snapshot .config folders for Joplin had a program file dated to the current day called "window-state-prod.json". I tried deleting it and restoring the .config folder without it but still nothing.

I know this doesn't make sense but I even tried restoring my system with TimeShift as last ditch effort in the hopes it would fix something I overlooked. Nothing changed.

I had a theory maybe the .config and sync location folders were replaced by the current folders somehow because of the prompt message about backing up files before restoring them. However, I noticed the database.sqlite files in the snapshot .config folders were a smaller size compared to the one in my current .config folder, which I thought was promising. On a different note, I also noticed the database is the same size for all the snapshots including the ones made yesterday and today. Could this mean they're all the same database regardless of the date? I tried restoring the database file to a separate location and then pasting it over the current database but no luck.

Tried running BackInTime from a live USB drive to see what would happen but I wasn't able to get to recognize the snapshots in the backup location.

Is BackInTime malfunctioning or am I doing something wrong here? I hope it's the latter because I really want to recover my notes FYI, I used the root version only.

Any help would be appreciated. I'm using running BackInTime version 1.1.12 on Linux Mint 19.2. Thanks.
IMO this is the fault of Linux developers that create a fancy "one-click" GUI for a complex process (backing up & restoring a system) that gets even more complex due to the varying nature of the various Linux distributions & setups.
It rarely works 100%.
This might just about fly on a Windows desktop (because they're essentially all the same), but not on Linux: it creates an illusion of "user-friendliness" that does not exist.
At the very least, there should be a huge sign with big red letters saying
If you mess with the defaults, things can break. Linux does not come with safety belts.
OP using two different backup programs certainly didn't help there.
Sorry.
I use borgbackup - it provides some guidance, but no misguided hand-holding.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo: Use BackInTime for full-system-backup cheesus LinuxAnswers Discussion 0 02-06-2013 11:17 AM
[SOLVED] HOWTO: Use BackInTime for automatic full system backup cheesus Linux - Software 3 02-05-2013 06:46 PM
Question about backintime-gnome Nabeel Linux - Newbie 2 01-20-2013 08:51 AM
How do you get 'backintime' to run? sneckert Linux - Software 2 08-04-2009 05:32 PM
I cant uninstall backintime linux hates me Linux - Software 1 06-03-2009 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration