[GNC] Log File?

Geoff cleanoutmyshed at gmail.com
Fri Jan 17 05:50:40 EST 2025


Hi John, and welcome to the wonderful world of GunCash!

To answer your question:

 > Each time I close the program a .log file appears on my
 > desktop.  How do I stop this?

Edit -> Preferences -> General -> Retain log/backup files -> Never


To answer the questions you didn't ask, but probably should have:

 > I just imported a bank statement with 500 transactions into the
 > wrong account - how can I fix this?

 > A power outage stopped my computer and I lost two hours of data entry 
 > without saving - do I have to re-key everything?

 > The cat just typed in del */*.* - how do I recover my accounts?

 > A burglar stole my laptop - how can I get my financial data back?

 > Invent your own disaster recovery scenario...

https://gnucash.org/viewdoc.phtml?rev=5&lang=C&doc=guide

2.5. Backing Up and Recovering Data

~~~ snip ~~~

2.5.2. Log file (.log)
Each time you open and edit a file in GnuCash, GnuCash creates a log 
file of changes you have made to your data file. The log file uses a 
similar naming format as the backup files: .YYYYMMDDHHMMSS.log. Log 
files are not a full backup of your data file - they simply record 
changes you have made to the data file in the current GnuCash session.

In case you exit GnuCash inadvertently, possibly due to a power outage 
or a system wide crash, it is possible to recover most of your work 
since the last time you saved your GnuCash file using this log file. 
This is the procedure:

Open the last saved GnuCash file.

Go to File → Import → Replay GnuCash .log file and select the one .log 
file with the same date as the saved file you just opened. Make sure 
that you picked the right .log file, or you will possibly wreak havoc in 
your accounts.

Log replaying will recover any transaction affecting the balance entered 
since the last save, including those created from scheduled transactions 
and business features (invoices, bills, etc.).


Hope this helps.

Regards

Geoff
=====

On 16/01/2025 9:39 am, John McCann wrote:
> I am a new user.  Each time I close the program a .log file appears on my
> desktop.  How do I stop this?
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnc_log_file_retention.jpg
Type: image/jpeg
Size: 70830 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20250117/627d9c54/attachment-0001.jpg>


More information about the gnucash-user mailing list