replaying log files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

replaying log files

John Griessen-3
I was doing some work and decided to clean up old saves and move log files out of the way as my gnucash directory was getting
cluttered.   Now the work is gone from the ecosensory.gnucash file that was open.

The entries I made are in the log files though.

Any hints on using them will be appreciated.


The script I ran to get in this fix has always been used after exiting gnucash in the past:
==============================
#!/bin/bash
#  fileclean
rm -f *.gnucash.*.gnucash
mv  *.log ./ecosensory.gnucash_logs_backup

============================


John Griessen
_______________________________________________
gnucash-user mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: replaying log files

John Griessen-3
On 01/19/2017 12:38 AM, John Griessen wrote:
> Now the work is gone from the ecosensory.gnucash file that was open.
>
> The entries I made are in the log files though.

The work was not gone.  I had opened two instances of gnucash some how.
One was many entries ahead of the other. One must have been hanging around
and never got saved.

I found faqs on using log files, so no more answers needed.
_______________________________________________
gnucash-user mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: replaying log files

Plutocrat
In reply to this post by John Griessen-3
John Griessen wrote on Thursday, 19 January, 2017 02:38 PM:
> The script I ran to get in this fix has always been used after exiting gnucash in the past:

As an alternative, you might consider using the 'find' command instead, which will let you select files over a certain age. Something like

find /path/to/directory -name '*gnucash*gnucash' -mtime +7
find /path/to/directory -name '*gnucash*log' -mtime +7

will list all files over 7 days old. When that's displaying the correct files, append the -delete flag to get rid of them. (PS. obviously backup before testing this out!) eg.

find /path/to/directory -name '*gnucash*gnucash' -mtime +7 -delete

There's also an option within gnucash to only keep files of a certain age, which will do the same thing. Look in Preferences > General > Retain log/backup files. For xx days

P
_______________________________________________
gnucash-user mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.