GNOME Bugzilla – Bug 635360
Explain backup files from 2.4's point of view
Last modified: 2018-06-29 22:47:42 UTC
Guide, chapter 2.7. Not critical, but the current explanation happens from a pre-2.4 point of view, namely that files may have no extension and backup files have a .xac extension. This is the way 2.2 and earlier used to work. In 2.4 all xml files (original file AND backup files) have the extension .gnucash. It would be less confusing if the example showed a file and backup file with .gnucash extension and the text below explains how things are supposed to be in 2.4. This is the 2.4 documentation after all. Then a note can be added to explain additionally how it used to be in 2.2 and how the can affect you if you upgraded from 2.2 to 2.4.
Created attachment 176273 [details] [review] patch for bug 635360 I attach a patch for this bug. I've added the YYYYMMDDHHMMSS part to .gnucash backup file extension to avoid confusion with non-backup file. If it's too verbose I will remove it. About the 2.2 to 2.4 upgrade case I think it can be considered enough the existing note about xac files. Comments anyone?
Comment on attachment 176273 [details] [review] patch for bug 635360 Sounds good.
I would only change two small bits: 1. The first note: ... <note> - <para><application>&app;</application> 2.4 onwards creates backup files with the extension - <filename>.gnucash</filename> instead of the old extension <filename>.xac</filename>. - So if you upgrade from the 2.2 series to the 2.4 series, you may end up with both <filename>.xac</filename> - and <filename>.gnucash</filename> backup files in your directory.</para> + <para><application>&app;</application> versions 2.3.15 and older create backup files with the extension + <filename>.YYYYMMDDHHMMSS.xac</filename>. + So if you upgrade from the 2.2 series to the 2.4 series, you may end up with both <filename>.YYYYMMDDHHMMSS.xac</filename> + and <filename>.YYYYMMDDHHMMSS.gnucash</filename> backup files in your directory.</para> </note> ... 2. The last note: ... <note> - <para><application>&app;</application> will automatically delete any <filename>.xac</filename> and <filename>.log</filename> - files that are older than 30 days. You can change this behavior in the <application>&app;</application> + <para>By default <application>&app;</application> will automatically delete any <filename>.log</filename> and <filename>.YYYYMMDDHHMMSS.gnucash</filename> + backup files that are older than 30 days. You can change this behavior in the <application>&app;</application> ... Other than that, the I'm happy with your patch.
Thanks Geert, I've added your suggested modifications and I've applied the patch. It's ok if I close this bug?
Thanks for your work. You can close the bug as far as I'm concerned.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=635360. Please update any external references or bookmarks.