David, 

I agree. Additionally, there are many different ways to remedy the situation-- 
as noted by others in the thread (omitting log files for backup, for example).

Moreover, it doesn't take a huge effort to work out your own solution. I, for 
example, took a half hour and threw together the following powershell script 
that will move all such items in the current directory into a folder named 
"backup":

$backupfolder = "./backup/"
$filelist = Get-ChildItem |Where-Object {$_.basename -match 'gnucash.[0-9_]'}
move-item -path $filelist -destination $backupfolder

This can be placed in a powershell file (e.g., "movelog.ps1") and run from your 
gnucash folder. Note that I didn't put any error checks in; it simply moves any 
file that has "gnucash.###" in its name to that backup location. My tests 
showed it worked for me. It would not be hugely difficult to add tests and 
configurations to allow broader use, but I'm not that interested in the issue.  

A similar approach could be taken on Linux and MacOs. The user can then either 
run this as they remember, or set it to run at a regular time.

⁣David T. ​

On Aug 11, 2024, 6:29 AM, at 6:29 AM, David Cousens <[email protected]> 
wrote:
>Richard I would suspect the main reason that this feature request has
>never been implemented is that it lies at the interface of GnuCash with
>the Windows/Linux/MacOSX operating systems and has to work seamlessly
>on all of them. That requires a level of both code and multiple OS
>familiarity that few of us posess and those that do generally have more
>pressing problems to address. 
>On Sat, 2024-08-10 at 11:45 -0500, R Losey wrote:
>> I haven't done a lot of customization with my GnuCash system.
>> 
>> My data file - MyData.gnucash is in the same directory as what I call
>> the
>> "working" files -- the MyData.gnucash.<timestamp>.gnucash and the
>> MyData.gnucash.<timestamp>.log files.
>> 
>> Is there some way that these working files can be created in a
>> separate
>> directory?
>> 
>> I am backing up the GnuCash data directory, but in reality, all I
>> really
>> need to backup is my GnuCash file - all of these working files are
>> just
>> taking up space on the backup media.
>> 
>> Note: I have GnuCash set to trim the files after a certain number of
>> days,
>> but the files are (naturally) not deleted from the backup material,
>> so it
>> has files back to when I started the backup.
>> 
>> Thanks!
>> 
>
>_______________________________________________
>gnucash-user mailing list
>[email protected]
>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.
_______________________________________________
gnucash-user mailing list
[email protected]
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.

Reply via email to