Re: EDS - compression, backup, restore

new topic     » topic index » view thread      » older message » newer message

On Sat, 11 Mar 2000 06:22:14 -0500, Ken Rhodes <kenrhodesusa at NETSCAPE.NET>
wrote:

>Rob,
>
>How about adding backup and restore/compress functions to EDS by which the
>backup is a accomplished by "rewriting all the contents of the file to a new
>file" and the restore/compress function deletes the original and copies the
>"compressed" back up  to the original name and location?
>
How about writing to a new file and renaming the old file to tmp or some
other option like optionally deleting the old file. It is absolutely unsafe to
do what you have suggested. If for some reason, the second rename
fails badly and the old file has already been deleted...oops...now we
have nothing. In general, I would want to test the "compressed" file
before deleting the old file anyway. That way, I will have an almost
immediate recovery if there are problems with the compress. Of course,
I am assuming that you have backed up the file before doing any of
the above smile

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu