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 12-22-2014, 12:42 PM   #1
studeski
LQ Newbie
 
Registered: Jul 2009
Location: Wisconsin
Distribution: Ubuntu 14.04.1
Posts: 11

Rep: Reputation: 0
Gnucash where's my data?


My computer crashed while upgrading Ubuntu. Long story short. I installed a new boot drive. My /home is still on the other drive. I installed GNUCASH on the new drive but I can't find my current data. I'm getting stuff that's 2 years old. I've gone to the GNuCASH site and looked every where on my other hard drive. I just used it two weeks ago. What's the secret. I think I had a version 2.4 something.
 
Old 12-22-2014, 05:48 PM   #2
bryanl
Member
 
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
It depends upon where you stored your primary data which can be either a set of files or a database. Assuming you used a file store somewhere on your home directory. this might help --

The closest thing in ~/.gnucash files I see is a GUID and that doesn't help much. (but maybe you put your filestore there, too?)

so the easiest thing to do is to look for the filestore on your old drive. I assume you can still mount it so you can get to your old home directory? In a command prompt run
Code:
find . -iname "*cash*"
that's the find command starting at the current directory and all below looking for a file with "cash" in the name somewhere ignoring case. The gnucash file store has a series of files in the form of 'bookname.gnucash.timestamp. and log or gnucash. 'bookname' is whatever you called your financial books when you set them up. The most recently modified file doesn't have the timestamp. If this doesn't find any good candidates, you might try the same command from the root of your old disk to see what it finds. You might need to use sudo to get around file permissions.
 
Old 12-23-2014, 11:03 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Well, my data lives in a file called accounts.xac — the only files that have .gnucash at the end are the log files.
 
Old 12-23-2014, 11:52 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You seem to have lost all your hidden configuration cards (.gnucash, .thunderbird and probably .mozilla and many many others) when you left your home directory on the old drive. What is the path to your current home directory?
jdk
 
Old 12-23-2014, 12:13 PM   #5
studeski
LQ Newbie
 
Registered: Jul 2009
Location: Wisconsin
Distribution: Ubuntu 14.04.1
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bryanl View Post
It depends upon where you stored your primary data which can be either a set of files or a database. Assuming you used a file store somewhere on your home directory. this might help --

The closest thing in ~/.gnucash files I see is a GUID and that doesn't help much. (but maybe you put your filestore there, too?)

so the easiest thing to do is to look for the filestore on your old drive. I assume you can still mount it so you can get to your old home directory? In a command prompt run
Code:
find . -iname "*cash*"
that's the find command starting at the current directory and all below looking for a file with "cash" in the name somewhere ignoring case. The gnucash file store has a series of files in the form of 'bookname.gnucash.timestamp. and log or gnucash. 'bookname' is whatever you called your financial books when you set them up. The most recently modified file doesn't have the timestamp. If this doesn't find any good candidates, you might try the same command from the root of your old disk to see what it finds. You might need to use sudo to get around file permissions.
'find' doesn't work for me but 'whereis' does. I got a lot of stuff mostly manual locations.

---------- Post added 12-23-14 at 12:14 PM ----------

Quote:
Originally Posted by jdkaye View Post
You seem to have lost all your hidden configuration cards (.gnucash, .thunderbird and probably .mozilla and many many others) when you left your home directory on the old drive. What is the path to your current home directory?
jdk
The old drive is still here. I can see everything that's on it.
 
Old 12-23-2014, 02:57 PM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
and do you see .gnucash?
You need to use this command while you're in your home directory.
Code:
ls -a
jdk
 
Old 12-23-2014, 03:52 PM   #7
bryanl
Member
 
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
Quote:
my data lives in a file called accounts.xac
older version. no problem. just substitute xac for cash in the find command. You could also substitute 'accounts.xac' to hone down the find results but I find a search that is a bit more open is more likely to help me when I tend towards typos or memory lapses. Sometimes I redirect the output to a text file that I can then scan with gvim or another editor. i.e find . -iname "*accounts*" > accountfilesfound.txt'

Quote:
'find' doesn't work for me but 'whereis' does
whereis is to find commands, not data files. find will list any file matching the search criteria given with a whole lot of options about where to search and what to search for and how to list results.

use command 'man find' and compare to 'man whereis'
 
Old 12-23-2014, 04:30 PM   #8
studeski
LQ Newbie
 
Registered: Jul 2009
Location: Wisconsin
Distribution: Ubuntu 14.04.1
Posts: 11

Original Poster
Rep: Reputation: 0
I spent 3 hours looking for those files. Today I found them.

Thanks for your help
 
  


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
[SOLVED] gnucash for 13.37 patostevens Slackware 9 06-05-2011 06:19 PM
gnucash data file imports patostevens Linux - Software 0 05-02-2008 11:00 AM
Gnucash Data Loss ravisghosh Linux - Software 1 11-08-2006 08:21 AM
gnucash Cherock Linux - Newbie 5 10-22-2006 06:31 PM
gnucash cphase Slackware 11 04-13-2005 05:46 PM

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

All times are GMT -5. The time now is 11:06 PM.

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