Too many .log and .xac files

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

Too many .log and .xac files

OOzy-2
In the directory I am keeping my account file, there are too many .log
and .xac files. How can I prevent them from being created or at least
prevent them from appearing.

Is it safe to delete them?

--
OOzy
Kubuntu-Edgy
_______________________________________________
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: Too many .log and .xac files

Derek Atkins
Quoting OOzy Pal <[hidden email]>:

> In the directory I am keeping my account file, there are too many .log
> and .xac files. How can I prevent them from being created or at least
> prevent them from appearing.

Edit -> Preferences

There is a preference for the number of days to keep the backup (.xac)
and log (.log) files around.   There MAY be a bug where it doesn't
properly delete .log files.

> Is it safe to delete them?

Yes.  They are only backup and logfiles.  If you think your data file
is correct then it's perfectly safe to delete the extraneous files.

-derek

--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available

_______________________________________________
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: Too many .log and .xac files

David Berg
Derek Atkins wrote:

> Quoting OOzy Pal <[hidden email]>:
>
>> In the directory I am keeping my account file, there are too many .log
>> and .xac files. How can I prevent them from being created or at least
>> prevent them from appearing.
>
> Edit -> Preferences
>
> There is a preference for the number of days to keep the backup (.xac)
> and log (.log) files around.   There MAY be a bug where it doesn't
> properly delete .log files.
>
>> Is it safe to delete them?
>
> Yes.  They are only backup and logfiles.  If you think your data file
> is correct then it's perfectly safe to delete the extraneous files.
>
> -derek
>

I would like to have them around, but don't want to see them.  Has there
been discussion of storing them in a hidden directory?  Would this be an
  easy change to make in the source?

--Dave

_______________________________________________
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: Too many .log and .xac files

David Hampton-7
On Wed, 2007-02-14 at 12:39 -0600, David Berg wrote:

> I would like to have them around, but don't want to see them.  Has there
> been discussion of storing them in a hidden directory?  Would this be an
>   easy change to make in the source?

Edit -> Preferences -> General Tab -> Retain Log Files

David


_______________________________________________
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: Too many .log and .xac files

Josh Sled
In reply to this post by David Berg
On Wed, 2007-02-14 at 12:39 -0600, David Berg wrote:
> I would like to have them around, but don't want to see them.  Has there
> been discussion of storing them in a hidden directory?  Would this be an
>   easy change to make in the source?

I can't think of any other software that hides its backup files in this
way, and think it would be confusing to do so.

I also think the default value of retaining 30 days worth of backups is
way overkill, and leads to more user irritation than safety.  As such,
I've been meaning to propose lowering it to 1 for future releases.
Objection?

--
...jsled
http://asynchronous.org/ - a=jsled;b=asynchronous.org;echo ${a}@${b}

_______________________________________________
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.

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Too many .log and .xac files

Rich Shepard
On Wed, 14 Feb 2007, Josh Sled wrote:

> I've been meaning to propose lowering it to 1 for future releases.
> Objection?

   Not from me.

Rich

--
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |          Accelerator(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
_______________________________________________
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: Too many .log and .xac files

Derek Atkins
In reply to this post by Josh Sled
Quoting Josh Sled <[hidden email]>:

> On Wed, 2007-02-14 at 12:39 -0600, David Berg wrote:
>> I would like to have them around, but don't want to see them.  Has there
>> been discussion of storing them in a hidden directory?  Would this be an
>>   easy change to make in the source?
>
> I can't think of any other software that hides its backup files in this
> way, and think it would be confusing to do so.
>
> I also think the default value of retaining 30 days worth of backups is
> way overkill, and leads to more user irritation than safety.  As such,
> I've been meaning to propose lowering it to 1 for future releases.
> Objection?

I'd rather it be 7-10.  I think 1 is too short.

-derek

--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available

_______________________________________________
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: Too many .log and .xac files

David Berg
In reply to this post by Josh Sled
Josh Sled wrote:
> On Wed, 2007-02-14 at 12:39 -0600, David Berg wrote:
>> I would like to have them around, but don't want to see them.  Has there
>> been discussion of storing them in a hidden directory?  Would this be an
>>   easy change to make in the source?
>
> I can't think of any other software that hides its backup files in this
> way, and think it would be confusing to do so.


OpenOffice defaults to using ~/.openoffice/user/backups

I believe Vim's default is to use filename~ which gnome allows to be hidden

Though not really backups... there are vim's .swp files which are hidden
files.

Gimp doesn't keep backups at all leaving it up to the users.  Although,
this may be due in part to space constraints in dealing with images.

I actually can't think of a program that does keep a whole slew of
backups around in the same directory as the original.  One perhaps, but
not 30.  I may have seen programs that create a visible backup
directory.  Something like ~/Banking\ Files/Backups would be an
improvement on the current settings ... at least for me.

Regardless of whether it's a good design decision, I'd like to change
the program for my own install to use a hidden directory.  I'm not
familiar with the gnucash source at all though.  Would this be an easy
change?  Where would I start?


> I also think the default value of retaining 30 days worth of backups is
> way overkill, and leads to more user irritation than safety.  As such,
> I've been meaning to propose lowering it to 1 for future releases.
> Objection?

The 30 day setting is great, if the files are stored out of the way.
Its not like they take up significant disk space.

--Dave

_______________________________________________
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: Too many .log and .xac files

Josh Sled
On Wed, 2007-02-14 at 14:11 -0600, David Berg wrote:
> Regardless of whether it's a good design decision, I'd like to change
> the program for my own install to use a hidden directory.  I'm not
> familiar with the gnucash source at all though.  Would this be an easy
> change?  Where would I start?

Relatively easy.

Start at src/backend/file/gnc-backend-file.c.  In particular, look for
the strings "retain_days" and ".xac".  That will lead you to
gnc_file_be_backup_file and gnc_int_link_or_make_backup.  Check the
callers, and you'll find your way to gnc_file_be_write_to_file.  Between
those functions should lie the solution.

(Followups should probably go to gnucash-devel...)

--
...jsled
http://asynchronous.org/ - a=jsled;b=asynchronous.org;echo ${a}@${b}

_______________________________________________
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.

signature.asc (196 bytes) Download Attachment
Liz
Reply | Threaded
Open this post in threaded view
|

Re: Too many .log and .xac files

Liz
In reply to this post by Josh Sled
On Thursday 15 February 2007 06:43, Josh Sled wrote:
> I also think the default value of retaining 30 days worth of backups is
> way overkill, and leads to more user irritation than safety.  As such,
> I've been meaning to propose lowering it to 1 for future releases.
> Objection?

You may not find a data loss problem until reconciliation. Because some
things, like statements come at about 30 day intervals you could have not
enough backups.
They were a user of hard drive space before they were compressed. My whole
gnucash directory is less than 40MB, which in the days of 200GB+ HDD is not a
lot. 5MB of that is last years account summaries before I burnt to CD. I
haven't archived anything and have over 10 years of data.

--
Life is wasted on the living.
                -- The Restaurant at the Edge of the Universe.

_______________________________________________
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: Too many .log and .xac files

Bugzilla from spelya@yahoo.ca
In reply to this post by Derek Atkins


Derek Atkins a écrit :

> Quoting Josh Sled <[hidden email]>:
>
>  
>> On Wed, 2007-02-14 at 12:39 -0600, David Berg wrote:
>>    
>>> I would like to have them around, but don't want to see them.  Has there
>>> been discussion of storing them in a hidden directory?  Would this be an
>>>   easy change to make in the source?
>>>      
>> I can't think of any other software that hides its backup files in this
>> way, and think it would be confusing to do so.
>>
>> I also think the default value of retaining 30 days worth of backups is
>> way overkill, and leads to more user irritation than safety.  As such,
>> I've been meaning to propose lowering it to 1 for future releases.
>> Objection?
>>    
>
> I'd rather it be 7-10.  I think 1 is too short.
>
> -derek
>
>  
Agree.  If the user is away, or does not use GnuCash, for a few days, he
would be left with no backup.


Serge
_______________________________________________
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: Too many .log and .xac files

Maf. King
In reply to this post by Liz
On Wednesday 14 Feb 2007, Elizabeth Dodd wrote:

> On Thursday 15 February 2007 06:43, Josh Sled wrote:
> > I also think the default value of retaining 30 days worth of backups is
> > way overkill, and leads to more user irritation than safety.  As such,
> > I've been meaning to propose lowering it to 1 for future releases.
> > Objection?
>
> You may not find a data loss problem until reconciliation. Because some
> things, like statements come at about 30 day intervals you could have not
> enough backups.
> They were a user of hard drive space before they were compressed. My whole
> gnucash directory is less than 40MB, which in the days of 200GB+ HDD is not
> a lot. 5MB of that is last years account summaries before I burnt to CD. I
> haven't archived anything and have over 10 years of data.

I agree.
One day of backup data file seems like too few to leave as a default, and I
have found that when I had inconsistent data files, it has taken me longer to
notice than one day.

How about changing the option to have a "retain backups for X days, but only
keep the last N files" setting  - might help keep the directories tidy for
those who prefer it that way. (is that even easy logic to implement in the
code?)

Personally, I'd rather have "spare" backups of my GC data, especially the
business file. 30 days is a cautious but reasonable default, IMHO.

Cheers,
Maf.


_______________________________________________
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: Too many .log and .xac files

Ian Lewis-3
>
> Personally, I'd rather have "spare" backups of my GC data, especially the
> business file. 30 days is a cautious but reasonable default, IMHO.
>

Another +1 for keeping the current default.

--
Ian Lewis
[hidden email]
http://www.ianlewis.org/
http://jsxe.sourceforge.net
_______________________________________________
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: Too many .log and .xac files

Ariel-16
In reply to this post by Josh Sled

On Wed, 14 Feb 2007, Josh Sled wrote:

> On Wed, 2007-02-14 at 12:39 -0600, David Berg wrote:
>> I would like to have them around, but don't want to see them.  Has there
>> been discussion of storing them in a hidden directory?  Would this be an
>>   easy change to make in the source?

> I can't think of any other software that hides its backup files in this
> way, and think it would be confusing to do so.

> I also think the default value of retaining 30 days worth of backups is
> way overkill, and leads to more user irritation than safety.  As such,
> I've been meaning to propose lowering it to 1 for future releases.
> Objection?

Yes. 1 is way too short, 7 at a minimum.

Instead of doing that, create a directory called <filename>.backups, and
drop everything in there.

Not a hidden directory, but still just 1 directory plus the actual file is
much better - then you don't have reduce the number of backups.

  -Ariel
_______________________________________________
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: Too many .log and .xac files

Jeff Carneal-4
In reply to this post by Josh Sled

A few points on this topic, as someone who within the last couple of  
days discovered the xac files and had them save his bacon.  Or at  
least a few hours of work.

1)  Hiding the files would have made it less likely that I would find  
the backups and investigate them via google

2)  Defaulting to 1 backup would have killed my chances of recovery.

3)  Whoever was originally responsible for xac backup code can  
contact me for a sizable quantity of their favorite beer

Thanks,
Jeff

On Feb 14, 2007, at 2:35 PM, Josh Sled wrote:

> On Wed, 2007-02-14 at 14:11 -0600, David Berg wrote:
>> Regardless of whether it's a good design decision, I'd like to change
>> the program for my own install to use a hidden directory.  I'm not
>> familiar with the gnucash source at all though.  Would this be an  
>> easy
>> change?  Where would I start?
>
> Relatively easy.
>
> Start at src/backend/file/gnc-backend-file.c.  In particular, look for
> the strings "retain_days" and ".xac".  That will lead you to
> gnc_file_be_backup_file and gnc_int_link_or_make_backup.  Check the
> callers, and you'll find your way to gnc_file_be_write_to_file.  
> Between
> those functions should lie the solution.
>
> (Followups should probably go to gnucash-devel...)
>
> --
> ...jsled
> http://asynchronous.org/ - a=jsled;b=asynchronous.org;echo ${a}@${b}
> _______________________________________________
> 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.

_______________________________________________
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: Too many .log and .xac files

David Berg
In reply to this post by Josh Sled
Josh Sled wrote:

> On Wed, 2007-02-14 at 14:11 -0600, David Berg wrote:
>> Regardless of whether it's a good design decision, I'd like to change
>> the program for my own install to use a hidden directory.  I'm not
>> familiar with the gnucash source at all though.  Would this be an easy
>> change?  Where would I start?
>
> Relatively easy.
>
> Start at src/backend/file/gnc-backend-file.c.  In particular, look for
> the strings "retain_days" and ".xac".  That will lead you to
> gnc_file_be_backup_file and gnc_int_link_or_make_backup.  Check the
> callers, and you'll find your way to gnc_file_be_write_to_file.  Between
> those functions should lie the solution.
>

Not sure why I didn't think of it earlier, but using launchers was quite
straight forward. It let me put the files (backups and originals) where
  I wanted, and have a representative of the original in a different
location.

For those who use gnome and want a quick howto:

1. Drag the launcher from the "Main Menu" to the desktop or directory
where you want it.
2. Right click on the launcher and select properties.
3. Click the launcher tab.
4. Change the "Command" text box from "gnucash %f" to "gnucash
LOCATION_OF_FILE"

Either a relative path or absolute path work fine, but relative paths
start from ~/.gnucash/data not from the directory of the launcher.

These instructions are for gnome 2.16.1 though I expect other versions
would be very similar.


--Dave

_______________________________________________
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.