Cleaning up backups
Michael Sterrett -Mr. Bones.-
msterret@coat.com
Mon, 17 Jun 2002 11:05:21 -0400 (EDT)
I have this in my crontab at home:
50 14 * * 0 find ~/gnucash/ \( -name "*.xac" -o -name "*.log" \) -mtime +30 -exec rm -vf \{\} \;
I like to keep the last 30 days on-line in case something odd happens
in gnucash. I use rm -v to see the output of the cronjob so if anything
odd happens, I can restore everything from the nightly backups.
HTH,
Michael Sterrett
-Mr. Bones.-
michael.sterrett@coat.com
On Mon, 17 Jun 2002, dann wrote:
> Perhaps this is convered somewhere in the documentation, but I cannot find
> it. Everytime I save and close gnucash a new file is created in my
> account directory listing the account name with the date and time appended
> to it. There are two files, a .log and .xac. As time goes on, these
> files have been getting larger and taking up a lot of space.
>
> Is there a way to set gnucash to delete some of these older files? Are
> they necessary? I have found that deleting older files does not seem to
> affect the data in my account.
>
> Right now, this directory is using 21 megs of space and holding 5 seperate
> date/time's I have used gnucash.
>
> Thanks
>
>