On Mon, 26 Jun 2000, Dave Peticolas wrote:
> This is the second version of the backup proposal.
> ...
> When GnuCash starts, it should check for the presence of the log file
> and, if it exists and has a later modification time than the main
> file, GnuCash should prompt the user to load the log file in addition
I don't want to trust file modification times; sometimes they get changed. How
about logging 'save' events, with matching timestamps or some such in the
saved database and the log entry? When GnuCash starts, it checks the log. If
the last entry isn't the 'save' for the database, something went wrong.
> + GnuCash should maintain log histories, rather than save histories, to
> handle failure #3.
>
> After saving, the current log file should be renamed to be the first
> log history file, and a new log file should be started.
Wouldn't it be simpler to have just one log file, and keep appending to it?
Fewer file operations means fewer opportunities for disaster. Logging, log
loading, undo, and miscellaneous scheme utilities would be less complicated
because they won't have to handle multiple log files, some of which could be
missing. (But you would need to give users a way to chop the front off of the
log when they want their disk space back.)
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]