Re: backup proposal

2000-06-23 Thread Rob Walker
> On Thu, 22 Jun 2000 22:38:47 -0700, Dave Peticolas > <[EMAIL PROTECTED]> said: >> It might be good to keep files in the same directory as much as >> possible, picking another name if necessary. I think Emacs handles >> all these cases pretty well; it might be worth looking at how it >

Re: backup proposal

2000-06-22 Thread Dave Peticolas
Dylan Paul Thurston writes: > On Thu, Jun 22, 2000 at 01:40:30AM -0700, Dave Peticolas wrote: > > > Probably the temporary files should be in /tmp or /usr/tmp and contain > > > the process number. > > > > If we put them in /tmp, then we really need to use something like > > mkstemp(char *template

Re: backup proposal

2000-06-22 Thread Dave Peticolas
provide this "eternal" undo? You know, we just might. The text export/import that Rob Browning is working on is also being designed for logging and automatic recovery. Infinite undo could be hard, but at least you could load the original file, and then load just part of the log file. In

Re: backup proposal

2000-06-22 Thread Glen Ditchfield
On Wed, 21 Jun 2000, Dave Peticolas wrote: > 3. The creation of a GnuCash database file that is a readable but >incorrect in a non-obvious way. Such a problem may not be discovered >for some time. Such a problem could be caused by a bug in GnuCash or >by the user accidentally entering

Re: backup proposal

2000-06-22 Thread Dave Peticolas
Dylan Paul Thurston writes: > On Thu, Jun 22, 2000 at 01:40:30AM -0700, Dave Peticolas wrote: > > > Probably the temporary files should be in /tmp or /usr/tmp and contain > > > the process number. > > > > If we put them in /tmp, then we really need to use something like > > mkstemp(char *template

Re: backup proposal

2000-06-22 Thread Dylan Paul Thurston
On Thu, Jun 22, 2000 at 01:40:30AM -0700, Dave Peticolas wrote: > > Probably the temporary files should be in /tmp or /usr/tmp and contain > > the process number. > > If we put them in /tmp, then we really need to use something like > mkstemp(char *template) to get a unique name. But I'm not sure

Re: backup proposal

2000-06-22 Thread Dave Peticolas
Dylan Paul Thurston writes: > On Wed, Jun 21, 2000 at 07:18:20PM -0700, Dave Peticolas wrote: > > Autosaving: every autosave_period() time units { > > if (database_has_changed()) { > > save_database_to_file(".autosave"); > > if (error) > >

Re: backup proposal

2000-06-22 Thread Dylan Paul Thurston
On Wed, Jun 21, 2000 at 07:18:20PM -0700, Dave Peticolas wrote: > Autosaving: every autosave_period() time units { > if (database_has_changed()) { > save_database_to_file(".autosave"); > if (error) > report_error_to_gui(); >

backup proposal

2000-06-21 Thread Dave Peticolas
Proposed Backup Strategy for GnuCash Goals - GnuCash's method for backing up its database files should protect against three kinds of failures: 1. A crash during the operation of GnuCash that doesn't affect the database file, but which prevents newly-